Skip to content

Commit 8e54a34

Browse files
committed
ci, gha: Run "x86_64: macOS Ventura" job on GitHub Actions
1 parent b327abf commit 8e54a34

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

.github/workflows/ci.yml

+85
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,94 @@ on:
88
- '**'
99

1010
env:
11+
### compiler options
12+
HOST:
13+
WRAPPER_CMD:
14+
# Specific warnings can be disabled with -Wno-error=foo.
15+
# -pedantic-errors is not equivalent to -Werror=pedantic and thus not implied by -Werror according to the GCC manual.
16+
WERROR_CFLAGS: '-Werror -pedantic-errors'
17+
MAKEFLAGS: '-j4'
18+
BUILD: 'check'
19+
### secp256k1 config
20+
ECMULTWINDOW: 'auto'
21+
ECMULTGENPRECISION: 'auto'
22+
ASM: 'no'
23+
WIDEMUL: 'auto'
24+
WITH_VALGRIND: 'yes'
25+
EXTRAFLAGS:
26+
### secp256k1 modules
27+
EXPERIMENTAL: 'no'
28+
ECDH: 'no'
29+
RECOVERY: 'no'
30+
SCHNORRSIG: 'no'
31+
ELLSWIFT: 'no'
32+
### test options
33+
SECP256K1_TEST_ITERS:
34+
BENCH: 'yes'
1135
SECP256K1_BENCH_ITERS: 2
36+
CTIMETESTS: 'yes'
37+
# Compile and run the examples.
38+
EXAMPLES: 'yes'
1239

1340
jobs:
41+
macos-native:
42+
name: "x86_64: macOS Ventura"
43+
# See: https://github.com/actions/runner-images#available-images.
44+
runs-on: macos-13
45+
46+
env:
47+
ASM: 'no'
48+
WITH_VALGRIND: 'no'
49+
CTIMETESTS: 'no'
50+
CC: 'clang'
51+
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
env_vars:
56+
- { WIDEMUL: 'int64', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes' }
57+
- { WIDEMUL: 'int64', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes', CC: 'gcc' }
58+
- { WIDEMUL: 'int128_struct', ECMULTGENPRECISION: 2, ECMULTWINDOW: 4 }
59+
- { WIDEMUL: 'int128', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes' }
60+
- { WIDEMUL: 'int128', RECOVERY: 'yes', SCHNORRSIG: 'yes' }
61+
- { WIDEMUL: 'int128', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes', CC: 'gcc' }
62+
- { WIDEMUL: 'int128', RECOVERY: 'yes', ECDH: 'yes', SCHNORRSIG: 'yes', ELLSWIFT: 'yes', CPPFLAGS: '-DVERIFY' }
63+
- BUILD: 'distcheck'
64+
65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@v3
68+
69+
- name: Install Homebrew packages
70+
env:
71+
HOMEBREW_NO_AUTO_UPDATE: 1
72+
HOMEBREW_NO_INSTALL_CLEANUP: 1
73+
run: |
74+
brew install automake libtool gcc
75+
ln -s $(brew --prefix gcc)/bin/gcc-?? /usr/local/bin/gcc
76+
77+
- name: CI script
78+
env: ${{ matrix.env_vars }}
79+
run: ./ci/cirrus.sh
80+
81+
- run: cat tests.log || true
82+
if: ${{ always() }}
83+
- run: cat noverify_tests.log || true
84+
if: ${{ always() }}
85+
- run: cat exhaustive_tests.log || true
86+
if: ${{ always() }}
87+
- run: cat ctime_tests.log || true
88+
if: ${{ always() }}
89+
- run: cat bench.log || true
90+
if: ${{ always() }}
91+
- run: cat config.log || true
92+
if: ${{ always() }}
93+
- run: cat test_env.log || true
94+
if: ${{ always() }}
95+
- name: CI env
96+
run: env
97+
if: ${{ always() }}
98+
1499
win64-native:
15100
name: "x86_64: Windows, VS 2022"
16101
# See: https://github.com/actions/runner-images#available-images.

0 commit comments

Comments
 (0)