27
27
LD_LIBRARY_PATH : " /usr/local/opt/llvm/lib"
28
28
DYLD_LIBRARY_PATH : " /usr/local/opt/llvm/lib"
29
29
30
- # - os: macos-latest
31
- # c_compiler: gcc
32
- # cpp_compiler: g++-13
33
- #
34
- # - os: ubuntu-latest
35
- # c_compiler: gcc
36
- # cpp_compiler: g++-13
37
-
38
30
- os : ubuntu-latest
39
31
c_compiler : clang
40
32
cpp_compiler : clang++-18
@@ -51,22 +43,11 @@ jobs:
51
43
run : |
52
44
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=TRUE
53
45
brew update
54
- brew install llvm cmake ninja gcc libgcrypt openssl@3 readline libsodium
46
+ brew install llvm cmake ninja gcc@13 libgcrypt openssl@3 readline libsodium
55
47
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
56
48
echo 'export PATH="/usr/local/opt/gcc@13/bin:$PATH"' >> ~/.bash_profile
57
49
echo 'export PATH="/usr/local/opt/gcc@13/lib/gcc/13:$PATH"' >> ~/.bash_profile
58
50
59
- # - name: Install Dependencies
60
- # if: matrix.os == 'ubuntu-latest'
61
- # run: |
62
- # wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
63
- # sudo add-apt-repository -y "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
64
- # sudo add-apt-repository -y ppa:ubuntu-toolchain-r/ppa
65
- # sudo apt update
66
- # sudo apt install -y cmake ninja-build gcc-13 g++-13 clang-17 lldb-17 lld-17 libc++-17-dev libc++abi-17-dev \
67
- # libomp-17-dev libgcrypt20 openssl libreadline8 libsodium23 libsodium-dev
68
-
69
-
70
51
- uses : actions/checkout@v4
71
52
72
53
- name : Set reusable strings
@@ -80,19 +61,11 @@ jobs:
80
61
if : matrix.os == 'ubuntu-latest'
81
62
run : |
82
63
sudo ./scripts/buildscript.sh
83
- # OS=${{ matrix.os }}
84
- # COMMAND="./scripts/install-blake3.sh ${{ matrix.c_compiler }}"
85
- # if [ "$OS" == "macos-latest" ]; then
86
- # $COMMAND
87
- # elif [ "$OS" == "ubuntu-latest" ]; then
88
- # sudo $COMMAND
89
- # fi
90
- #
91
64
92
65
- name : Install Blake3
93
66
if : matrix.os == 'macos-latest'
94
67
run : |
95
- ./scripts/install-blake3.sh ${{ matrix.c_compiler }}
68
+ sudo ./scripts/install-blake3.sh ${{ matrix.c_compiler }}
96
69
97
70
- name : Configure CMake
98
71
if : matrix.os == 'macos-latest'
@@ -112,12 +85,7 @@ jobs:
112
85
- name : Build
113
86
if : matrix.os == 'macos-latest'
114
87
run : cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j 4
115
- #
116
- # - name: Test
117
- # working-directory: ${{ steps.strings.outputs.build-output-dir }}
118
- # # Execute tests defined by the CMake configuration
119
- # run: ctest --build-config ${{ matrix.build_type }}
120
- #
88
+
121
89
- name : Package
122
90
if : matrix.os == 'macos-latest' && matrix.build_type == 'Release'
123
91
working-directory : ${{ steps.strings.outputs.build-output-dir }}
0 commit comments