Skip to content

Commit ef0675d

Browse files
committed
👷 Add mac test builds to CI
1 parent 812ea82 commit ef0675d

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/14.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,33 @@ jobs:
7373
os: windows-latest
7474
host_profile: -pr:h cortex-m33f
7575

76+
verify-macos-14-arm-cortex-m1:
77+
uses: ./.github/workflows/verify.yml
78+
with:
79+
display_name: Mac 14 ARM → Cortex-m1
80+
version: ${{ inputs.version }}
81+
os: macos-15
82+
host_profile: -pr:h cortex-m1
83+
cross_build_only: true
84+
85+
verify-macos-15-arm-cortex-m7d:
86+
uses: ./.github/workflows/verify.yml
87+
with:
88+
display_name: Mac 15 ARM → Cortex-M7D
89+
version: ${{ inputs.version }}
90+
os: macos-15
91+
host_profile: -pr:h cortex-m7d
92+
cross_build_only: true
93+
94+
verify-macos-15-intel-cortex-m0plus:
95+
uses: ./.github/workflows/verify.yml
96+
with:
97+
display_name: Mac 15 x86_64 → Cortex-M0+
98+
version: ${{ inputs.version }}
99+
os: macos-15-intel
100+
host_profile: -pr:h cortex-m0plus
101+
cross_build_only: true
102+
76103
upload-package:
77104
needs:
78105
- verify-linux-x86_64
@@ -81,6 +108,9 @@ jobs:
81108
- verify-linux-x86_64-cortex-m4f
82109
- verify-linux-arm-cortex-m4
83110
- verify-windows-x86_64-cortex-m33f
111+
- verify-macos-14-arm-cortex-m1
112+
- verify-macos-15-arm-cortex-m7d
113+
- verify-macos-15-intel-cortex-m0plus
84114
if: ${{ startsWith(github.ref, 'refs/tags/') && inputs.upload == true }}
85115
uses: ./.github/workflows/upload.yml
86116
secrets: inherit

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
branches:
2222
- main
2323

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
2428
jobs:
2529
ci_14:
2630
uses: ./.github/workflows/14.yml

.github/workflows/verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
host_profile:
3030
type: string
3131
default: ""
32+
cross_build_only:
33+
type: boolean
34+
default: false
3235

3336
env:
3437
VERBOSE: "1"
@@ -74,6 +77,7 @@ jobs:
7477
run: conan create all --version=${{ inputs.version }} --build-require --build=cmake --build=missing:cmake/* -pr:h gcc-${{ inputs.version }} ${{ inputs.host_profile }} --build=make --build=missing:make/*
7578

7679
- name: ⚙️ Build/Install ninja from scratch using gcc for build platform
80+
if: ${{ inputs.cross_build_only == false }}
7781
run: >
7882
conan install --tool-requires="ninja/1.13.2" --build="ninja/*" -pr:a gcc-${{ inputs.version }} --build=cmake --build=missing:cmake/*
7983

0 commit comments

Comments
 (0)