@@ -13,11 +13,13 @@ concurrency:
1313 group : ${{ github.workflow }}-${{ github.ref }}
1414 cancel-in-progress : true
1515
16+ permissions :
17+ contents : read
18+
1619jobs :
1720 build :
1821 name : Build (${{ matrix.os }})
1922 runs-on : ${{ matrix.os }}
20- continue-on-error : true
2123 strategy :
2224 fail-fast : false
2325 matrix :
@@ -27,15 +29,13 @@ jobs:
2729 - name : Configure
2830 run : cmake -B build -DEBLDR_BUILD_TESTS=ON
2931 - name : Build
30- run : cmake --build build --config Release
32+ run : cmake --build build --config Release --parallel
3133 - name : Test
32- if : runner.os == 'Linux'
3334 run : ctest --test-dir build --output-on-failure -C Release
3435
3536 cross-compile :
3637 name : Cross (${{ matrix.board }})
3738 runs-on : ubuntu-latest
38- continue-on-error : true
3939 strategy :
4040 fail-fast : false
4141 matrix :
5757 - name : Install cross-compiler
5858 run : |
5959 sudo apt-get update
60- sudo apt-get install -y ${{ matrix.pkg }} || true
60+ sudo apt-get install -y ${{ matrix.pkg }}
6161 - name : Cross-compile
6262 run : |
6363 if [ -f "${{ matrix.toolchain }}" ]; then
@@ -67,30 +67,28 @@ jobs:
6767 cmake -B build -DEBLDR_BOARD=${{ matrix.board }} \
6868 -DCMAKE_SYSTEM_NAME=Linux
6969 fi
70- cmake --build build || true
70+ cmake --build build --parallel
7171
7272 sanitize :
7373 name : Sanitizers
7474 runs-on : ubuntu-latest
75- continue-on-error : true
7675 steps :
7776 - uses : actions/checkout@v4
7877 - name : Build with sanitizers
7978 run : |
8079 cmake -B build \
8180 -DEBLDR_BUILD_TESTS=ON \
8281 -DEBLDR_SANITIZE=ON
83- cmake --build build
82+ cmake --build build --parallel
8483 - name : Run tests under sanitizers
85- run : ctest --test-dir build --output-on-failure
8684 env :
8785 ASAN_OPTIONS : detect_leaks=1:halt_on_error=1
8886 UBSAN_OPTIONS : halt_on_error=1
87+ run : ctest --test-dir build --output-on-failure
8988
9089 security-hardening :
9190 name : Security Hardening Build
9291 runs-on : ubuntu-latest
93- continue-on-error : true
9492 steps :
9593 - uses : actions/checkout@v4
9694 - name : Build with all security options
10199 -DEBLDR_REQUIRE_SIGNATURES=ON \
102100 -DEBLDR_RECOVERY_AUTH=ON \
103101 -DEBLDR_VERIFY_STAGE1=ON
104- cmake --build build
102+ cmake --build build --parallel
105103 - name : Run tests
106- run : ctest --test-dir build --output-on-failure
104+ run : ctest --test-dir build --output-on-failure
0 commit comments