Skip to content

Commit 1003707

Browse files
committed
ci: Run "x86_64: macOS Ventura" job on GitHub Actions
1 parent 8d2960c commit 1003707

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

.github/workflows/ci.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,98 @@ 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: Set environment variables
70+
run: |
71+
read -r -a vars <<< "${{ matrix.env_vars }}"
72+
for var in "${vars[@]}"; do
73+
echo "$var" >> "$GITHUB_ENV"
74+
done
75+
echo "MAKEFLAGS=-j$(($(sysctl -n hw.logicalcpu) + 1))" >> "$GITHUB_ENV"
76+
77+
- name: Install Homebrew packages
78+
env:
79+
HOMEBREW_NO_AUTO_UPDATE: 1
80+
HOMEBREW_NO_INSTALL_CLEANUP: 1
81+
run: brew install automake libtool $([ "${CC}" = "gcc" ] && echo "gcc")
82+
83+
- name: CI script
84+
run: ./ci/cirrus.sh
85+
86+
- run: cat tests.log || true
87+
if: ${{ always() }}
88+
- run: cat noverify_tests.log || true
89+
if: ${{ always() }}
90+
- run: cat exhaustive_tests.log || true
91+
if: ${{ always() }}
92+
- run: cat ctime_tests.log || true
93+
if: ${{ always() }}
94+
- run: cat bench.log || true
95+
if: ${{ always() }}
96+
- run: cat config.log || true
97+
if: ${{ always() }}
98+
- run: cat test_env.log || true
99+
if: ${{ always() }}
100+
- run: env
101+
if: ${{ always() }}
102+
14103
win64-native:
15104
name: "x86_64: Windows, VS 2022"
16105
# See: https://github.com/actions/runner-images#available-images.

0 commit comments

Comments
 (0)