Skip to content

Commit 6493d16

Browse files
willieyzhanno-becker
authored andcommitted
CI: Add Baremetal CI
- Adds CI to exercise the MPS3 AN547 (Cortex-M55) baremetal builds. - It includes functional tests, KAT tests, and ACVP tests. Signed-off-by: willieyz <[email protected]>
1 parent af6fd6e commit 6493d16

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/workflows/all.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,11 @@ jobs:
8787
needs: [ base, nix ]
8888
uses: ./.github/workflows/slothy.yml
8989
secrets: inherit
90+
baremetal:
91+
name: Baremetal
92+
permissions:
93+
contents: 'read'
94+
id-token: 'write'
95+
needs: [ base ]
96+
uses: ./.github/workflows/baremetal.yml
97+
secrets: inherit

.github/workflows/baremetal.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) The mldsa-native project authors
2+
# Copyright (c) The mlkem-native project authors
3+
# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
4+
5+
name: Baremetal
6+
permissions:
7+
contents: read
8+
on:
9+
workflow_call:
10+
workflow_dispatch:
11+
12+
jobs:
13+
baremetal_tests:
14+
name: Baremetal tests (${{ matrix.target.name }})
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
target:
19+
- runner: ubuntu-latest
20+
name: 'M55-AN547'
21+
makefile: test/baremetal/platform/m55-an547/platform.mk
22+
nix-shell: arm-embedded
23+
runs-on: ${{ matrix.target.runner }}
24+
steps:
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
- name: baremetal build + test
27+
uses: ./.github/actions/functest
28+
env:
29+
EXTRA_MAKEFILE: ${{ matrix.target.makefile }}
30+
with:
31+
nix-shell: ${{ matrix.target.nix-shell }}
32+
gh_token: ${{ secrets.GITHUB_TOKEN }}
33+
opt: no_opt
34+
func: true
35+
kat: true
36+
acvp: true
37+
examples: false
38+
stack: false

test/mk/config.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,14 @@ endif
7676
# Include retained variables #
7777
##############################
7878

79+
80+
# Force AUTO=0 when cross-compiling to avoid host architecture detection
81+
ifneq ($(CROSS_PREFIX),)
82+
override AUTO:=0
83+
else
7984
AUTO ?= 1
85+
endif
86+
8087
CYCLES ?=
8188
OPT ?= 1
8289
RETAINED_VARS := CROSS_PREFIX CYCLES OPT AUTO

0 commit comments

Comments
 (0)