Skip to content

Commit 96885bc

Browse files
committed
Update GitHub workflow configuration
1 parent 1a53632 commit 96885bc

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

.github/workflows/cmake-multi-platform.yml

+3-35
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ jobs:
2727
LD_LIBRARY_PATH: "/usr/local/opt/llvm/lib"
2828
DYLD_LIBRARY_PATH: "/usr/local/opt/llvm/lib"
2929

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-
3830
- os: ubuntu-latest
3931
c_compiler: clang
4032
cpp_compiler: clang++-18
@@ -51,22 +43,11 @@ jobs:
5143
run: |
5244
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=TRUE
5345
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
5547
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
5648
echo 'export PATH="/usr/local/opt/gcc@13/bin:$PATH"' >> ~/.bash_profile
5749
echo 'export PATH="/usr/local/opt/gcc@13/lib/gcc/13:$PATH"' >> ~/.bash_profile
5850
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-
7051
- uses: actions/checkout@v4
7152

7253
- name: Set reusable strings
@@ -80,19 +61,11 @@ jobs:
8061
if: matrix.os == 'ubuntu-latest'
8162
run: |
8263
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-
#
9164
9265
- name: Install Blake3
9366
if: matrix.os == 'macos-latest'
9467
run: |
95-
./scripts/install-blake3.sh ${{ matrix.c_compiler }}
68+
sudo ./scripts/install-blake3.sh ${{ matrix.c_compiler }}
9669
9770
- name: Configure CMake
9871
if: matrix.os == 'macos-latest'
@@ -112,12 +85,7 @@ jobs:
11285
- name: Build
11386
if: matrix.os == 'macos-latest'
11487
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+
12189
- name: Package
12290
if: matrix.os == 'macos-latest' && matrix.build_type == 'Release'
12391
working-directory: ${{ steps.strings.outputs.build-output-dir }}

scripts/buildscript.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function install_dependencies() {
2929
add-apt-repository -y "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
3030
add-apt-repository -y ppa:ubuntu-toolchain-r/ppa
3131
apt update
32-
apt install -y unzip gcc clang-18 lldb-18 lld-18 libc++-18-dev libc++abi-18-dev clang-tools-18 libgcrypt20 openssl libreadline8 libsodium23 libsodium-dev
32+
apt install -y unzip gcc-14 clang-18 lldb-18 lld-18 libc++-18-dev libc++abi-18-dev libllvmlibc-18-dev clang-tools-18 libgcrypt20 openssl libreadline8 libsodium23 libsodium-dev
3333

3434
# Install CMake 3.28.3
3535
if dpkg -s "cmake" >/dev/null 2>&1; then

0 commit comments

Comments
 (0)