Skip to content

Commit

Permalink
change linux ci
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Dec 31, 2023
1 parent 8c0c27f commit c52192b
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,14 @@ jobs:
strategy:
matrix:
build-type: ["Release", "Debug"]
gcc-version: ["11"]
gcc-version: ["11", "12", "latest"]
container: gcc:${{ matrix.gcc-version }}
steps:
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: C++ Setting
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -yq g++-${{matrix.gcc-version}} gcc-${{matrix.gcc-version}} libc++-dev libc++abi-dev build-essential libstdc++-${{matrix.gcc-version}}-dev cmake
- name: Compiler Setting
run: |
echo "CC=gcc-${{matrix.gcc-version}}" >> $GITHUB_ENV
echo "CXX=g++-${{matrix.gcc-version}}" >> $GITHUB_ENV
- name: Clone Repository
uses: actions/checkout@master
- name: Get latest CMake and ninja
uses: lukka/[email protected]
- uses: actions/checkout@v3
with:
submodules: true
- name: CMake build
Expand All @@ -48,21 +41,16 @@ jobs:
strategy:
matrix:
build-type: ["Release", "Debug"]
clang-version: ["13", "14", "15"]
clang-version:
["8", "9", "10", "11", "12", "13", "14", "15-bullseye", "latest"]
container: silkeh/clang:${{ matrix.compiler }}
steps:
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: C++ Setting
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -yq clang-${{matrix.clang-version}} libc++-dev libc++abi-dev libstdc++-${{matrix.clang-version}}-dev build-essential cmake
- name: Compiler Setting
run: |
echo "CC=clang-${{matrix.clang-version}}" >> $GITHUB_ENV
echo "CXX=clang++-${{matrix.clang-version}}" >> $GITHUB_ENV
- name: Get latest CMake
uses: lukka/[email protected]
- name: Clone Repository
uses: actions/checkout@master
uses: actions/checkout@v3
with:
submodules: true
- name: CMake build
Expand Down

0 comments on commit c52192b

Please sign in to comment.