|
5 | 5 |
|
6 | 6 | build-and-test-ubuntu: |
7 | 7 | #if: false # Temporarily disable |
8 | | - name: Build And Test Ubuntu |
| 8 | + name: Build And Test Ubuntu ${{ matrix.row }} |
9 | 9 | runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + fail-fast: false |
| 12 | + matrix: |
| 13 | + include: |
| 14 | + - row: clang-openssl-baseline |
| 15 | + compiler: clang |
| 16 | + build_dir: build-ci-quick-clang |
| 17 | + sanitizer: none |
| 18 | + use_webrtc: false |
| 19 | + crypto: default |
| 20 | + crypto25519: default |
| 21 | + targets: "test_connection test_crypto" |
| 22 | + run_tests: true |
| 23 | + tests: "test_crypto test_connection:suite-quick" |
| 24 | + - row: gcc-openssl-crypto |
| 25 | + compiler: gcc |
| 26 | + build_dir: build-ci-quick-gcc |
| 27 | + sanitizer: none |
| 28 | + use_webrtc: false |
| 29 | + crypto: default |
| 30 | + crypto25519: default |
| 31 | + targets: "test_crypto" |
| 32 | + run_tests: true |
| 33 | + tests: "test_crypto" |
| 34 | + - row: clang-libsodium |
| 35 | + compiler: clang |
| 36 | + build_dir: build-ci-quick-sodium |
| 37 | + sanitizer: none |
| 38 | + use_webrtc: false |
| 39 | + crypto: libsodium |
| 40 | + crypto25519: libsodium |
| 41 | + targets: "test_crypto" |
| 42 | + run_tests: true |
| 43 | + tests: "test_crypto" |
| 44 | + - row: clang-reference-25519 |
| 45 | + compiler: clang |
| 46 | + build_dir: build-ci-quick-ref25519 |
| 47 | + sanitizer: none |
| 48 | + use_webrtc: false |
| 49 | + crypto: default |
| 50 | + crypto25519: Reference |
| 51 | + targets: "test_crypto" |
| 52 | + run_tests: true |
| 53 | + tests: "test_crypto" |
| 54 | + - row: clang-openssl-webrtc |
| 55 | + compiler: clang |
| 56 | + build_dir: build-ci-quick-webrtc |
| 57 | + sanitizer: none |
| 58 | + use_webrtc: true |
| 59 | + crypto: default |
| 60 | + crypto25519: default |
| 61 | + targets: "test_crypto" |
| 62 | + run_tests: true |
| 63 | + tests: "test_crypto" |
10 | 64 | env: |
11 | 65 | CI_BUILD: 1 |
12 | 66 | IMAGE: ubuntu |
|
20 | 74 | run: | |
21 | 75 | sudo -E bash .github/install.sh |
22 | 76 | sudo -E bash .github/install-post.sh |
23 | | - - name: Build and run tests |
24 | | - run: bash .github/build.sh |
| 77 | + - name: Build and run selected single config |
| 78 | + run: | |
| 79 | + set -euo pipefail |
| 80 | +
|
| 81 | + args=( |
| 82 | + --compiler "${{ matrix.compiler }}" |
| 83 | + --build-dir "${{ matrix.build_dir }}" |
| 84 | + --sanitizer "${{ matrix.sanitizer }}" |
| 85 | + ) |
| 86 | +
|
| 87 | + if [[ "${{ matrix.use_webrtc }}" == "true" ]]; then |
| 88 | + args+=(--use-webrtc) |
| 89 | + fi |
| 90 | +
|
| 91 | + if [[ "${{ matrix.crypto }}" != "default" ]]; then |
| 92 | + args+=(--crypto "${{ matrix.crypto }}") |
| 93 | + fi |
| 94 | +
|
| 95 | + if [[ "${{ matrix.crypto25519 }}" != "default" ]]; then |
| 96 | + args+=(--crypto25519 "${{ matrix.crypto25519 }}") |
| 97 | + fi |
| 98 | +
|
| 99 | + if [[ -n "${{ matrix.targets }}" ]]; then |
| 100 | + read -r -a target_args <<< "${{ matrix.targets }}" |
| 101 | + args+=(--targets "${target_args[@]}") |
| 102 | + fi |
| 103 | +
|
| 104 | + if [[ "${{ matrix.run_tests }}" == "true" ]]; then |
| 105 | + args+=(--run-tests) |
| 106 | + if [[ -n "${{ matrix.tests }}" ]]; then |
| 107 | + read -r -a test_args <<< "${{ matrix.tests }}" |
| 108 | + args+=(--tests "${test_args[@]}") |
| 109 | + fi |
| 110 | + fi |
| 111 | +
|
| 112 | + python3 .github/run-single-config.py "${args[@]}" |
25 | 113 |
|
26 | 114 | # Don't do it this way. This causes the main badge to |
27 | 115 | # go red if one of the flavors fails. |
|
0 commit comments