Skip to content

Commit 702f6ce

Browse files
committed
Workflow: multiple architectures with different -O levels
Test configurations with different optimization levels: -O2, -O3, -O1, -O0, -Os, -Ofast
1 parent 967f520 commit 702f6ce

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/multi-arch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
CFLAGS: -marm -DWOLFSSL_SP_ARM_ARCH=6
3838
ARCH: armel
3939
EXTRA_OPTS: --enable-sp-asm
40+
opts: [ '-O2', '-O3', '-O1 -UFP_ECC', '-O0', '-Os', '-Ofast' ]
4041
if: github.repository_owner == 'wolfssl'
4142
runs-on: ubuntu-22.04
4243
# This should be a safe limit for the tests to run.
@@ -47,10 +48,10 @@ jobs:
4748
sudo apt update
4849
sudo apt install -y crossbuild-essential-${{ matrix.ARCH }} qemu-user
4950
- uses: actions/checkout@v4
50-
- name: Build
51+
- name: Build for ${{ matrix.ARCH }} with Opt Level ${{ matrix.opts }}
5152
env:
5253
CC: ${{ matrix.CC }}
53-
CFLAGS: ${{ matrix.CFLAGS }}
54+
CFLAGS: ${{ matrix.CFLAGS }} ${{ matrix.opts }}
5455
QEMU_LD_PREFIX: /usr/${{ matrix.HOST }}
5556
run: ./autogen.sh && ./configure --host=${{ matrix.HOST }} --enable-all --disable-examples CPPFLAGS="-pedantic -Wdeclaration-after-statement -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE -DWOLFCRYPT_TEST_LINT" ${{ matrix.EXTRA_OPTS }} && make
5657
- name: Print errors

0 commit comments

Comments
 (0)