Skip to content

Commit 218f0cc

Browse files
committed
ci: Add native macOS arm64 job
1 parent 0653a25 commit 218f0cc

File tree

1 file changed

+59
-3
lines changed

1 file changed

+59
-3
lines changed

.github/workflows/ci.yml

+59-3
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,10 @@ jobs:
585585
run: env
586586
if: ${{ always() }}
587587

588-
macos-native:
589-
name: "x86_64: macOS Monterey"
588+
x86_64-macos-native:
589+
name: "x86_64: macOS Monterey, Valgrind"
590590
# See: https://github.com/actions/runner-images#available-images.
591-
runs-on: macos-12 # Use M1 once available https://github.com/github/roadmap/issues/528
591+
runs-on: macos-12
592592

593593
env:
594594
CC: 'clang'
@@ -644,6 +644,62 @@ jobs:
644644
run: env
645645
if: ${{ always() }}
646646

647+
arm64-macos-native:
648+
name: "ARM64: macOS Sonoma"
649+
# See: https://github.com/actions/runner-images#available-images.
650+
runs-on: macos-14
651+
652+
env:
653+
CC: 'clang'
654+
HOMEBREW_NO_AUTO_UPDATE: 1
655+
HOMEBREW_NO_INSTALL_CLEANUP: 1
656+
WITH_VALGRIND: 'no'
657+
CTIMETESTS: 'no'
658+
659+
strategy:
660+
fail-fast: false
661+
matrix:
662+
env_vars:
663+
- { WIDEMUL: 'int64', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes' }
664+
- { WIDEMUL: 'int128_struct', ECMULTGENPRECISION: 2, ECMULTWINDOW: 4 }
665+
- { WIDEMUL: 'int128', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes' }
666+
- { WIDEMUL: 'int128', RECOVERY: 'yes' }
667+
- { WIDEMUL: 'int128', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes' }
668+
- { WIDEMUL: 'int128', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes', CC: 'gcc' }
669+
- { WIDEMUL: 'int128', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes', CPPFLAGS: '-DVERIFY' }
670+
- BUILD: 'distcheck'
671+
672+
steps:
673+
- name: Checkout
674+
uses: actions/checkout@v4
675+
676+
- name: Install Homebrew packages
677+
run: |
678+
brew install automake libtool gcc
679+
ln -s $(brew --prefix gcc)/bin/gcc-?? /usr/local/bin/gcc
680+
681+
- name: CI script
682+
env: ${{ matrix.env_vars }}
683+
run: ./ci/ci.sh
684+
685+
- run: cat tests.log || true
686+
if: ${{ always() }}
687+
- run: cat noverify_tests.log || true
688+
if: ${{ always() }}
689+
- run: cat exhaustive_tests.log || true
690+
if: ${{ always() }}
691+
- run: cat ctime_tests.log || true
692+
if: ${{ always() }}
693+
- run: cat bench.log || true
694+
if: ${{ always() }}
695+
- run: cat config.log || true
696+
if: ${{ always() }}
697+
- run: cat test_env.log || true
698+
if: ${{ always() }}
699+
- name: CI env
700+
run: env
701+
if: ${{ always() }}
702+
647703
win64-native:
648704
name: ${{ matrix.configuration.job_name }}
649705
# See: https://github.com/actions/runner-images#available-images.

0 commit comments

Comments
 (0)