Skip to content

Commit

Permalink
fix CI again
Browse files Browse the repository at this point in the history
  • Loading branch information
yaito3014 committed Aug 12, 2024
1 parent 85c5a85 commit a627094
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,44 @@ jobs:
matrix:
os: [ubuntu-latest]
build_type: [Release]
compiler: [g++, clang++]
compiler:
- cxx: g++
ver: 13
- cxx: g++
ver: 14
- cxx: clang++
ver: 19
- cxx: clang++
ver: 20

steps:
- uses: actions/checkout@v4

- name: Set reusable strings
id: strings
shell: bash
run: |
run: >
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
echo "cxx-compiler=${{ matrix.compiler.cxx }}-${{ matrix.compiler.ver }}" >> "$GITHUB_OUTPUT"
- name: Setup Clang
if: matrix.compiler.cxx == 'clang++'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh ${{ matrix.compiler.ver }}
- name: Setup GCC
if: matrix.compiler.cxx == 'g++'
run: sudo apt update && sudo apt install -y gcc-${{ matrix.compiler.ver }}

- name: Install Deps
run: sudo apt update && sudo apt-get install g++ clang libboost-test-dev
run: sudo apt update && sudo apt install libboost-test-dev

- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
-DCMAKE_CXX_COMPILER=${{ steps.strings.outputs.cxx-compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
Expand Down

0 comments on commit a627094

Please sign in to comment.