@@ -3,26 +3,40 @@ name: Build libraries
3
3
on :
4
4
create :
5
5
tags :
6
- - ' *-x86_64'
6
+ - ' *'
7
+ pull_request :
7
8
8
9
jobs :
9
- build_macosx_x86_64 :
10
- name : Build MacOSX (x86_64)
11
- runs-on : macOS-11
10
+ build_macosx :
11
+ name : Build wheels on ${{ matrix.os }}
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ matrix :
15
+ # macos-13 is an intel runner, higher macos's are apple silicon
16
+ # At some point, maybe get this to work on windows-latest
17
+ os : [macos-13, macos-latest]
12
18
13
19
steps :
14
20
- name : Checkout
15
- uses : actions/checkout@v3
21
+ uses : actions/checkout@v4
16
22
17
23
- name : Set up CMake
18
24
uses : lukka/get-cmake@latest
19
25
20
26
- name : Run the build
27
+ if : matrix.os == 'macos-13'
21
28
run : |
22
29
git config --global --add safe.directory $(pwd)
23
30
./build_macosx.sh "x86_64"
24
31
tar -czf macosx_x86_64.tar.gz installed/
25
32
33
+ - name : Run the build
34
+ if : matrix.os == 'macos-latest'
35
+ run : |
36
+ git config --global --add safe.directory $(pwd)
37
+ ./build_macosx.sh "arm64"
38
+ tar -czf macosx_arm64.tar.gz installed/
39
+
26
40
- name : Upload tarballs
27
41
uses : actions/upload-artifact@v3
28
42
with :
34
48
35
49
steps :
36
50
- name : Checkout
37
- uses : actions/checkout@v3
51
+ uses : actions/checkout@v4
38
52
39
53
- name : Run the build
40
54
run : |
@@ -50,12 +64,12 @@ jobs:
50
64
51
65
publish :
52
66
name : Publish libraries
53
- needs : [build_macosx_x86_64 , build_windows_x86_64]
67
+ needs : [build_macosx , build_windows_x86_64]
54
68
if : startsWith(github.ref, 'refs/tags/')
55
69
runs-on : ubuntu-latest
56
70
57
71
steps :
58
- - name : Download macosx (x86_64) artifact
72
+ - name : Download macosx artifact
59
73
uses : actions/download-artifact@v3
60
74
with :
61
75
path : dump
67
81
- name : Publish release
68
82
uses : softprops/action-gh-release@v1
69
83
with :
70
- name : " HDF5 binaries (x86_64) "
84
+ name : " HDF5 binaries"
71
85
files : dump/*/*
0 commit comments