Skip to content

Commit 0d4e362

Browse files
authored
Merge pull request #1752 from input-output-hk/dlachaume/1751/add-macos-arm64-in-ci
Use `macOS-arm64` runner in CI
2 parents 4f5b1c5 + 4b9473e commit 0d4e362

File tree

6 files changed

+39
-3
lines changed

6 files changed

+39
-3
lines changed

.github/workflows/actions/build-upload-mithril-artifact/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ runs:
1818
shell: bash
1919
run: echo "short_sha=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT
2020

21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.x'
25+
2126
- name: Add commit short sha to Cargo.tomls version
2227
shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }}
2328
run: |

.github/workflows/actions/prepare-distribution/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ runs:
3838
--version "${{ inputs.version-name }}" \
3939
--target "macos-x64"
4040
41+
- name: Package distribution (macOS-arm64)
42+
shell: bash
43+
run: |
44+
python3 ./.github/workflows/scripts/package-distribution.py \
45+
--input package-macOS-arm64/ \
46+
--dest package/ \
47+
--version "${{ inputs.version-name }}" \
48+
--target "macos-arm64"
49+
4150
- name: Package distribution (Windows-X64)
4251
shell: bash
4352
run: |

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,16 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
os: [ macos-12, windows-latest ]
78+
os: [ macos-12, macos-14, windows-latest ]
7979

8080
include:
8181
# Only build client on windows & mac
8282
- os: macos-12
8383
binaries-build-args: --bin mithril-client --features bundle_openssl
8484
libraries-build-args: --package mithril-stm --package mithril-client --features full,unstable
85+
- os: macos-14
86+
binaries-build-args: --bin mithril-client --features bundle_openssl
87+
libraries-build-args: --package mithril-stm --package mithril-client --features full,unstable
8588
- os: windows-latest
8689
# Use `--bins --package <package>` instead of `--bin <package>`, otherwise the 'windows' compatibility
8790
# hack in mithril common cargo.toml doesn't apply (we have no idea why).
@@ -163,14 +166,16 @@ jobs:
163166
strategy:
164167
fail-fast: false
165168
matrix:
166-
os: [ ubuntu-22.04, macos-12, windows-latest ]
169+
os: [ ubuntu-22.04, macos-12, macos-14, windows-latest ]
167170

168171
include:
169172
- os: ubuntu-22.04
170173
test-args: --features full,unstable --workspace
171174
# Only test client on windows & mac (since its the only binaries supported for those os for now)
172175
- os: macos-12
173176
test-args: --package mithril-client --package mithril-client-cli --features full,unstable
177+
- os: macos-14
178+
test-args: --package mithril-client --package mithril-client-cli --features full,unstable
174179
- os: windows-latest
175180
test-args: --package mithril-client --package mithril-client-cli --features full,unstable
176181

@@ -520,6 +525,12 @@ jobs:
520525
name: mithril-distribution-macOS-X64
521526
path: ./package-macOS-X64
522527

528+
- name: Download built artifacts (macOS-arm64)
529+
uses: actions/download-artifact@v4
530+
with:
531+
name: mithril-distribution-macOS-arm64
532+
path: ./package-macOS-arm64
533+
523534
- name: Download built artifacts (Windows-X64)
524535
uses: actions/download-artifact@v4
525536
with:

.github/workflows/pre-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
workflow: ci.yml
4646
workflow_conclusion: success
4747

48+
- name: Download built artifacts (macOS-arm64)
49+
uses: dawidd6/action-download-artifact@v3
50+
with:
51+
name: mithril-distribution-macOS-arm64
52+
path: ./package-macOS-arm64
53+
commit: ${{ github.sha }}
54+
workflow: ci.yml
55+
workflow_conclusion: success
56+
4857
- name: Download built artifacts (Windows-x64)
4958
uses: dawidd6/action-download-artifact@v3
5059
with:

.github/workflows/test-client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
strategy:
4747
fail-fast: false
4848
matrix:
49-
os: [ ubuntu-22.04, macos-12, windows-latest ]
49+
os: [ ubuntu-22.04, macos-12, macos-14, windows-latest ]
5050
runs-on: ${{ matrix.os }}
5151
steps:
5252
- name: Checkout sources

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ As a minor extension, we have adopted a slightly different versioning convention
1515

1616
- Implement a lock mechanism on `SignedEntityType` to prevent concurrent work on a same entity type.
1717

18+
- Extended CI build and test steps for MacOS `arm64` runners and include pre-built binaries for MacOS `arm64` in the releases.
19+
1820
- **UNSTABLE** Cardano transactions certification:
1921
- Optimize the performances of the computation of the proof with a Merkle map.
2022
- Handle rollback events from the Cardano chain by removing stale data.

0 commit comments

Comments
 (0)