Skip to content

Commit 75b3e99

Browse files
authored
👷 Add mac test builds to CI (#4)
1 parent 812ea82 commit 75b3e99

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/14.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@ 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+
7694
upload-package:
7795
needs:
7896
- verify-linux-x86_64
@@ -81,6 +99,8 @@ jobs:
8199
- verify-linux-x86_64-cortex-m4f
82100
- verify-linux-arm-cortex-m4
83101
- verify-windows-x86_64-cortex-m33f
102+
- verify-macos-14-arm-cortex-m1
103+
- verify-macos-15-arm-cortex-m7d
84104
if: ${{ startsWith(github.ref, 'refs/tags/') && inputs.upload == true }}
85105
uses: ./.github/workflows/upload.yml
86106
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)