|
| 1 | +name: Linux |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: [master] |
| 7 | +concurrency: |
| 8 | + group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} |
| 9 | + cancel-in-progress: true |
| 10 | +defaults: |
| 11 | + run: |
| 12 | + shell: bash -e -l {0} |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + runs-on: ubuntu-24.04 |
| 16 | + name: ${{ matrix.sys.compiler }} ${{ matrix.sys.version }} |
| 17 | + strategy: |
| 18 | + fail-fast: false |
| 19 | + matrix: |
| 20 | + sys: |
| 21 | + - {compiler: gcc, version: '11',} |
| 22 | + - {compiler: gcc, version: '12'} |
| 23 | + - {compiler: gcc, version: '13'} |
| 24 | + - {compiler: gcc, version: '14'} |
| 25 | + - {compiler: gcc, version: '11', novendor: 1} |
| 26 | + - {compiler: gcc, version: '12', novendor: 1} |
| 27 | + - {compiler: gcc, version: '13', novendor: 1} |
| 28 | + - {compiler: gcc, version: '14', novendor: 1} |
| 29 | + #- {compiler: clang, version: '19'} |
| 30 | + - {compiler: clang, version: '20'} |
| 31 | + |
| 32 | + steps: |
| 33 | + |
| 34 | + - name: Install GCC |
| 35 | + if: matrix.sys.compiler == 'gcc' |
| 36 | + uses: egor-tensin/setup-gcc@v1 |
| 37 | + with: |
| 38 | + version: ${{matrix.sys.version}} |
| 39 | + platform: x64 |
| 40 | + |
| 41 | + - name: Install LLVM and Clang |
| 42 | + if: matrix.sys.compiler == 'clang' |
| 43 | + run: | |
| 44 | + wget https://apt.llvm.org/llvm.sh |
| 45 | + chmod +x llvm.sh |
| 46 | + sudo ./llvm.sh ${{matrix.sys.version}} |
| 47 | + sudo apt-get install -y clang-tools-${{matrix.sys.version}} |
| 48 | + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{matrix.sys.version}} 200 |
| 49 | + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{matrix.sys.version}} 200 |
| 50 | + sudo update-alternatives --install /usr/bin/clang-scan-deps clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}} 200 |
| 51 | + sudo update-alternatives --set clang /usr/bin/clang-${{matrix.sys.version}} |
| 52 | + sudo update-alternatives --set clang++ /usr/bin/clang++-${{matrix.sys.version}} |
| 53 | + sudo update-alternatives --set clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}} |
| 54 | +
|
| 55 | + - name: Build and run tests |
| 56 | + uses: ./.github/workflows/unix_impl.yml |
| 57 | + |
0 commit comments