From 0c1277737aaae5cfadfab4d8e4e2214bd42e0d6b Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 26 Mar 2024 09:32:23 -0400 Subject: [PATCH 1/4] more CI --- .github/workflows/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5824dfbe..4fc8b0c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,5 +16,15 @@ jobs: uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 with: release: 13.2.Rel1 - - name: Build All - run: make PLATFORM=mps2-an386 -j2 + - name: Build All (stm32f4discovery) + run: make PLATFORM=stm32f4discovery -j2 + - name: Build All (nucleo-l476rg) + run: make PLATFORM=nucleo-l476rg -j2 + - name: Build All (nucleo-l4r5zi) + run: make PLATFORM=nucleo-l4r5zi -j2 + - name: Build All (cw308t-stm32f3) + run: make PLATFORM=cw308t-stm32f3 -j2 + - name: Build All (cw308t-stm32f415) + run: make PLATFORM=cw308t-stm32f415 -j2 + - name: Build All (mps2-an386) + run: make PLATFORM=mps2-an386 -j2 \ No newline at end of file From c83565b36f613777bb21201b6b0ecf4441e4e3f2 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 26 Mar 2024 09:42:01 -0400 Subject: [PATCH 2/4] more CI --- .github/workflows/cw308t-stm32f3.yml | 21 ++++++++++++++++++ .github/workflows/cw308t-stm32f415.yml | 21 ++++++++++++++++++ .github/workflows/main.yml | 30 -------------------------- .github/workflows/mps2-an386.yml | 21 ++++++++++++++++++ .github/workflows/nucleo-l476rg.yml | 21 ++++++++++++++++++ .github/workflows/nucleo-l4r5zi.yml | 21 ++++++++++++++++++ .github/workflows/stm32f4discovery.yml | 21 ++++++++++++++++++ 7 files changed, 126 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/cw308t-stm32f3.yml create mode 100644 .github/workflows/cw308t-stm32f415.yml delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/mps2-an386.yml create mode 100644 .github/workflows/nucleo-l476rg.yml create mode 100644 .github/workflows/nucleo-l4r5zi.yml create mode 100644 .github/workflows/stm32f4discovery.yml diff --git a/.github/workflows/cw308t-stm32f3.yml b/.github/workflows/cw308t-stm32f3.yml new file mode 100644 index 00000000..a084d441 --- /dev/null +++ b/.github/workflows/cw308t-stm32f3.yml @@ -0,0 +1,21 @@ +name: cw308t-stm32f3 build +on: + push: + branches: + - master + pull_request: + branches: [ "master" ] +jobs: + build-all: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 + with: + release: 13.2.Rel1 + - name: Build All (cw308t-stm32f3) + run: make PLATFORM=cw308t-stm32f3 -j2 diff --git a/.github/workflows/cw308t-stm32f415.yml b/.github/workflows/cw308t-stm32f415.yml new file mode 100644 index 00000000..17180c87 --- /dev/null +++ b/.github/workflows/cw308t-stm32f415.yml @@ -0,0 +1,21 @@ +name: cw308t-stm32f415 build +on: + push: + branches: + - master + pull_request: + branches: [ "master" ] +jobs: + build-all: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 + with: + release: 13.2.Rel1 + - name: Build All (cw308t-stm32f415) + run: make PLATFORM=cw308t-stm32f415 -j2 \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 4fc8b0c5..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,30 +0,0 @@ -on: - push: - branches: - - master - pull_request: - types: [review_requested] -jobs: - build-all: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Install Toolchain - uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 - with: - release: 13.2.Rel1 - - name: Build All (stm32f4discovery) - run: make PLATFORM=stm32f4discovery -j2 - - name: Build All (nucleo-l476rg) - run: make PLATFORM=nucleo-l476rg -j2 - - name: Build All (nucleo-l4r5zi) - run: make PLATFORM=nucleo-l4r5zi -j2 - - name: Build All (cw308t-stm32f3) - run: make PLATFORM=cw308t-stm32f3 -j2 - - name: Build All (cw308t-stm32f415) - run: make PLATFORM=cw308t-stm32f415 -j2 - - name: Build All (mps2-an386) - run: make PLATFORM=mps2-an386 -j2 \ No newline at end of file diff --git a/.github/workflows/mps2-an386.yml b/.github/workflows/mps2-an386.yml new file mode 100644 index 00000000..c1ce929c --- /dev/null +++ b/.github/workflows/mps2-an386.yml @@ -0,0 +1,21 @@ +name: mps2-an386 build +on: + push: + branches: + - master + pull_request: + branches: [ "master" ] +jobs: + build-all: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 + with: + release: 13.2.Rel1 + - name: Build All (mps2-an386) + run: make PLATFORM=mps2-an386 -j2 \ No newline at end of file diff --git a/.github/workflows/nucleo-l476rg.yml b/.github/workflows/nucleo-l476rg.yml new file mode 100644 index 00000000..0c284a24 --- /dev/null +++ b/.github/workflows/nucleo-l476rg.yml @@ -0,0 +1,21 @@ +name: nucleo-l476rg build +on: + push: + branches: + - master + pull_request: + branches: [ "master" ] +jobs: + build-all: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 + with: + release: 13.2.Rel1 + - name: Build All (nucleo-l476rg) + run: make PLATFORM=nucleo-l476rg -j2 \ No newline at end of file diff --git a/.github/workflows/nucleo-l4r5zi.yml b/.github/workflows/nucleo-l4r5zi.yml new file mode 100644 index 00000000..7af21121 --- /dev/null +++ b/.github/workflows/nucleo-l4r5zi.yml @@ -0,0 +1,21 @@ +name: nucleo-l4r5zi build +on: + push: + branches: + - master + pull_request: + branches: [ "master" ] +jobs: + build-all: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 + with: + release: 13.2.Rel1 + - name: Build All (nucleo-l4r5zi) + run: make PLATFORM=nucleo-l4r5zi -j2 \ No newline at end of file diff --git a/.github/workflows/stm32f4discovery.yml b/.github/workflows/stm32f4discovery.yml new file mode 100644 index 00000000..6a5030b1 --- /dev/null +++ b/.github/workflows/stm32f4discovery.yml @@ -0,0 +1,21 @@ +name: stm32f4discovery build +on: + push: + branches: + - master + pull_request: + branches: [ "master" ] +jobs: + build-all: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Toolchain + uses: carlosperate/arm-none-eabi-gcc-action@v1.8.0 + with: + release: 13.2.Rel1 + - name: Build All (stm32f4discovery) + run: make PLATFORM=stm32f4discovery -j2 \ No newline at end of file From c33fab9dc0498f9a6583c509192b26759b3694cd Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 26 Mar 2024 09:56:42 -0400 Subject: [PATCH 3/4] fix nucleo-l476rg build --- mk/nucleo-l476rg.mk | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mk/nucleo-l476rg.mk b/mk/nucleo-l476rg.mk index 680fb8b1..8f07c804 100644 --- a/mk/nucleo-l476rg.mk +++ b/mk/nucleo-l476rg.mk @@ -3,7 +3,18 @@ OPENCM3_TARGET=lib/stm32/l4 EXCLUDED_SCHEMES = \ mupq/pqclean/crypto_kem/mceliece% \ + mupq/crypto_sign/ov-Ip% \ mupq/crypto_sign/falcon-1024-tree% \ - crypto_sign/ov-Ip% - + mupq/crypto_sign/snova-43-25-16-2-esk% \ + mupq/crypto_sign/snova-61-33-16-2-esk% \ + mupq/crypto_sign/snova-60-10-16-4-esk% \ + mupq/crypto_sign/snova-66-15-16-3-esk% \ + mupq/crypto_sign/snova-49-11-16-3-esk% \ + mupq/crypto_sign/snova-37-8-16-4-esk% \ + mupq/crypto_sign/meds55604% \ + mupq/crypto_sign/meds167717% \ + mupq/crypto_sign/meds134180% \ + mupq/crypto_sign/tuov% \ + crypto_sign/ov-Ip% \ + include mk/opencm3.mk From cc3481a10e1205c2a879bd9944cf809344630a86 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 26 Mar 2024 17:09:22 -0400 Subject: [PATCH 4/4] fix build for other platforms --- mk/cw308t-stm32f3.mk | 32 ++++++++++++++++++++++++++++---- mk/cw308t-stm32f415.mk | 4 ++++ mk/stm32f4discovery.mk | 9 +++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/mk/cw308t-stm32f3.mk b/mk/cw308t-stm32f3.mk index 7aa3d846..db6444f6 100644 --- a/mk/cw308t-stm32f3.mk +++ b/mk/cw308t-stm32f3.mk @@ -2,13 +2,37 @@ DEVICE=stm32f303rct7 OPENCM3_TARGET=lib/stm32/f3 EXCLUDED_SCHEMES = \ - mupq/pqclean/crypto_sign/sphincs-haraka-256f% \ - mupq/pqclean/crypto_sign/sphincs-shake256-256f% \ - mupq/pqclean/crypto_sign/sphincs-sha256-256f% \ + mupq/pqclean/crypto_sign/sphincs-shake-256f% \ + mupq/pqclean/crypto_sign/sphincs-sha2-256f% \ mupq/pqclean/crypto_kem/mceliece% \ mupq/crypto_sign/falcon-1024% \ mupq/crypto_sign/falcon-512% \ + mupq/crypto_sign/tuov_is% \ + mupq/crypto_sign/tuov_ip% \ + mupq/crypto_sign/tuov_iii% \ + mupq/crypto_sign/tuov_v% \ + mupq/crypto_sign/snova-43-25-16-2% \ + mupq/crypto_sign/snova-61-33-16-2% \ + mupq/crypto_sign/snova-25-8-16-3% \ + mupq/crypto_sign/snova-60-10-16-4% \ + mupq/crypto_sign/snova-66-15-16-3% \ + mupq/crypto_sign/snova-49-11-16-3% \ + mupq/crypto_sign/snova-28-17-16-2% \ + mupq/crypto_sign/snova-37-8-16-4% \ + mupq/crypto_sign/sphincs-a-sha2-256f% \ + mupq/crypto_sign/sphincs-a-shake-256f% \ + mupq/crypto_sign/ov-Ip% \ + mupq/crypto_sign/cross-sha2-r-sdp-5-small% \ + mupq/crypto_sign/cross-sha3-r-sdp-5-small% \ + mupq/crypto_sign/cross-sha2-r-sdp-5-fast% \ + mupq/crypto_sign/cross-sha3-r-sdp-5-fast% \ + mupq/crypto_sign/meds55604% \ + mupq/crypto_sign/meds41711% \ + mupq/crypto_sign/meds167717% \ + mupq/crypto_sign/meds134180% \ + mupq/crypto_sign/mirith_hypercube_Ia% \ crypto_sign/falcon-1024% \ - crypto_sign/falcon-512% + crypto_sign/falcon-512% \ + crypto_sign/ov-Ip% \ include mk/opencm3.mk diff --git a/mk/cw308t-stm32f415.mk b/mk/cw308t-stm32f415.mk index c148f5c0..fddb05a7 100644 --- a/mk/cw308t-stm32f415.mk +++ b/mk/cw308t-stm32f415.mk @@ -7,6 +7,10 @@ EXCLUDED_SCHEMES = \ mupq/pqclean/crypto_sign/sphincs-shake256-256f% \ mupq/pqclean/crypto_sign/sphincs-sha256-256f% \ mupq/crypto_sign/ov-Ip% \ + mupq/crypto_sign/tuov_is% \ + mupq/crypto_sign/tuov_ip% \ + mupq/crypto_sign/tuov_iii% \ + mupq/crypto_sign/tuov_v% \ crypto_sign/ov-Ip% \ mupq/crypto_sign/falcon-1024% \ mupq/crypto_sign/falcon-512% \ diff --git a/mk/stm32f4discovery.mk b/mk/stm32f4discovery.mk index 2b10ef4b..375b9217 100644 --- a/mk/stm32f4discovery.mk +++ b/mk/stm32f4discovery.mk @@ -5,6 +5,15 @@ EXCLUDED_SCHEMES = \ mupq/pqclean/crypto_kem/mceliece% \ mupq/crypto_sign/tuov% \ mupq/crypto_sign/ov-Ip% \ + mupq/crypto_sign/snova-43-25-16-2-esk% \ + mupq/crypto_sign/snova-61-33-16-2-esk% \ + mupq/crypto_sign/snova-60-10-16-4-esk% \ + mupq/crypto_sign/snova-66-15-16-3-esk% \ + mupq/crypto_sign/snova-49-11-16-3-esk% \ + mupq/crypto_sign/snova-37-8-16-4-esk% \ + mupq/crypto_sign/meds55604% \ + mupq/crypto_sign/meds167717% \ + mupq/crypto_sign/meds134180% \ crypto_sign/ov-Ip% \ mupq/crypto_sign/falcon-1024-tree%