|
| 1 | +# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT |
| 2 | + |
| 3 | +name: Extended |
| 4 | +permissions: |
| 5 | + contents: read |
| 6 | +on: |
| 7 | + workflow_call: |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +jobs: |
| 11 | + compiler_tests: |
| 12 | + name: Compiler tests (${{ matrix.compiler.name }}, ${{ matrix.target.name }}, ${{ matrix.cflags }}) |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + cflags: [ "-Os", "-O3" ] |
| 17 | + target: |
| 18 | + - runner: pqcp-arm64 |
| 19 | + name: 'aarch64' |
| 20 | + archflags: '' |
| 21 | + - runner: ubuntu-latest |
| 22 | + name: 'x86_64' |
| 23 | + archflags: '-mavx2 -mbmi2 -mpopcnt -maes' |
| 24 | + - runner: macos-latest |
| 25 | + name: 'macos' |
| 26 | + archflags: '' |
| 27 | + compiler: |
| 28 | + - name: gcc-4.8 |
| 29 | + shell: ci_gcc48 |
| 30 | + darwin: False |
| 31 | + - name: gcc-4.9 |
| 32 | + shell: ci_gcc49 |
| 33 | + darwin: False |
| 34 | + - name: gcc-7 |
| 35 | + shell: ci_gcc7 |
| 36 | + darwin: False |
| 37 | + - name: gcc-11 |
| 38 | + shell: ci_gcc11 |
| 39 | + darwin: True |
| 40 | + - name: gcc-13 |
| 41 | + shell: ci_gcc13 |
| 42 | + darwin: True |
| 43 | + - name: gcc-14 |
| 44 | + shell: ci_gcc14 |
| 45 | + darwin: True |
| 46 | + - name: clang-18 |
| 47 | + shell: ci_clang18 |
| 48 | + darwin: True |
| 49 | + - name: clang-19 |
| 50 | + shell: ci_clang19 |
| 51 | + darwin: True |
| 52 | + - name: clang-20 |
| 53 | + shell: ci_clang20 |
| 54 | + darwin: True |
| 55 | + # CPU flags are not correctly passed to the zig assembler |
| 56 | + # https://github.com/ziglang/zig/issues/23576 |
| 57 | + # We therefore only test the C backend |
| 58 | + # |
| 59 | + # We omit all examples since there is currently no way to run |
| 60 | + # only those examples not involving native code. |
| 61 | + # TODO: compiling with zig leads to test failures right now - needs to be revisited. |
| 62 | + #- name: zig-0.12 |
| 63 | + # shell: ci_zig0_12 |
| 64 | + # darwin: True |
| 65 | + #- name: zig-0.13 |
| 66 | + # shell: ci_zig0_13 |
| 67 | + # darwin: True |
| 68 | + #- name: zig-0.14 |
| 69 | + # shell: ci_zig0_14 |
| 70 | + # darwin: True |
| 71 | + exclude: |
| 72 | + # Exclude old GCC versions from macOS and aarch64 runners |
| 73 | + - target: { name: 'macos' } |
| 74 | + compiler: { darwin: False } |
| 75 | + - target: { name: 'aarch64' } |
| 76 | + compiler: { darwin: False } |
| 77 | + runs-on: ${{ matrix.target.runner }} |
| 78 | + steps: |
| 79 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 80 | + - name: build+functest (default) |
| 81 | + uses: ./.github/actions/multi-functest |
| 82 | + with: |
| 83 | + gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 84 | + nix-shell: ${{ matrix.compiler.shell }} |
| 85 | + cflags: "${{ matrix.cflags }} ${{ matrix.target.archflags }}" |
| 86 | + - name: native build+functest (C90) |
| 87 | + uses: ./.github/actions/multi-functest |
| 88 | + with: |
| 89 | + gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 90 | + nix-shell: ${{ matrix.compiler.shell }} |
| 91 | + cflags: "-std=c90 ${{ matrix.cflags }} ${{ matrix.target.archflags }}" |
| 92 | + - name: native build+functest (C99) |
| 93 | + uses: ./.github/actions/multi-functest |
| 94 | + with: |
| 95 | + gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 96 | + nix-shell: ${{ matrix.compiler.shell }} |
| 97 | + cflags: "-std=c99 ${{ matrix.cflags }} ${{ matrix.target.archflags }}" |
0 commit comments