actions #272
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Ubuntu | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
gcc: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: [4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
container: flagarde/ci-ubuntu-gcc-${{ matrix.image }}-x86_64:latest | |
steps: | |
- name: 📂 Load .env file | |
if: hashFiles('.github/workflows/.env') != '' | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: .github/workflows | |
- name: Install git | |
run: apt-get update; apt-get install --no-install-recommends -y git | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup CMake | |
uses: jwlawson/actions-setup-cmake@v2.0 | |
with: | |
cmake-version: 3.24.x | |
github-api-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🔧 Configure | |
run: cmake -S . -B ./build -D CMAKE_BUILD_TYPE=Debug | |
- name: Build | |
run: cmake --build build --parallel 2 | |
- name: Test | |
run: cd build ; ctest -C Debug --output-on-failure | |
clang: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: [3.5, 3.6, 3.7, 3.8, 3.9, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
container: flagarde/ci-ubuntu-clang-${{ matrix.image }}-x86_64:latest | |
steps: | |
- name: 📂 Load .env file | |
if: hashFiles('.github/workflows/.env') != '' | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: .github/workflows | |
- name: Install git | |
run: apt-get update; apt-get install --no-install-recommends -y git | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup CMake | |
uses: jwlawson/actions-setup-cmake@v2.0 | |
with: | |
cmake-version: 3.24.x | |
github-api-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🔧 Configure | |
run: cmake -S . -B ./build -D CMAKE_BUILD_TYPE=Debug | |
- name: Build | |
run: cmake --build build --parallel 2 | |
- name: Test | |
run: cd build ; ctest -C Debug --output-on-failure ${{ env.CTEST_VERBOSITY }} | |
intel: | |
runs-on: ubuntu-latest | |
container: flagarde/ci-ubuntu-gcc-11-x86_64:latest | |
steps: | |
- name: 📂 Load .env file | |
if: hashFiles('.github/workflows/.env') != '' | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: .github/workflows | |
- name: Install git | |
run: apt-get update; apt-get install --no-install-recommends -y git | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup CMake | |
uses: jwlawson/actions-setup-cmake@v2.0 | |
with: | |
cmake-version: 3.24.x | |
github-api-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install intel-onepai | |
run: apt install --no-install-recommends -y intel-oneapi-compiler-dpcpp-cpp | |
- name: 🔧 Configure | |
env: | |
CC: icx | |
CXX: icpx | |
run: . /opt/intel/oneapi/setvars.sh ; cmake -S . -B ./build -D CMAKE_BUILD_TYPE=Debug | |
- name: Build | |
run: cmake --build build --parallel 2 | |
- name: Test | |
run: cd build ; ctest -C Debug --output-on-failure ${{ env.CTEST_VERBOSITY }} |