1
1
name : Build libraries
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
4
+ create :
7
5
tags :
8
6
- ' *'
9
- pull_request :
10
7
11
8
jobs :
12
- build_manylinux_x86_64 :
13
- name : Build manylinux (x86_64)
14
- runs-on : ubuntu-latest
15
- container :
16
- image : quay.io/pypa/manylinux2014_x86_64
17
- env :
18
- ARTIFACT_NAME : manylinux_x86_64
19
-
20
- steps :
21
- - name : Checkout
22
- uses : actions/checkout@v3
23
-
24
- - name : Set up CMake
25
- uses : lukka/get-cmake@latest
26
-
27
- - name : Install wget
28
- run : yum install -y wget
29
-
30
- - name : Run the build
31
- run : |
32
- git config --global --add safe.directory $(pwd)
33
- ./build.sh "${ARTIFACT_NAME}"
34
-
35
- - name : Upload tarball
36
- uses : actions/upload-artifact@v3
37
- with :
38
- name : ${{ env.ARTIFACT_NAME }}
39
- path : hdf5/${{ env.ARTIFACT_NAME }}.tar.gz
40
-
41
- build_musllinux_x86_64 :
42
- name : Build musllinux (x86_64)
43
- runs-on : ubuntu-latest
44
- container :
45
- image : quay.io/pypa/musllinux_1_1_x86_64
46
- env :
47
- ARTIFACT_NAME : musllinux_x86_64
48
-
49
- steps :
50
- - name : Checkout
51
- uses : actions/checkout@v3
52
-
53
- - name : Install CMake
54
- run : apk add --no-cache cmake
55
-
56
- - name : Install wget
57
- run : apk add --no-cache wget
58
-
59
- - name : Run the build
60
- run : |
61
- git config --global --add safe.directory $(pwd)
62
- ./build.sh "${ARTIFACT_NAME}"
63
-
64
- - name : Upload tarball
65
- uses : actions/upload-artifact@v3
66
- with :
67
- name : ${{ env.ARTIFACT_NAME }}
68
- path : hdf5/${{ env.ARTIFACT_NAME }}.tar.gz
69
-
70
9
build_macosx_x86_64 :
71
10
name : Build MacOSX (x86_64)
72
11
runs-on : macOS-11
@@ -86,45 +25,37 @@ jobs:
86
25
- name : Run the build
87
26
run : |
88
27
git config --global --add safe.directory $(pwd)
89
- ./build .sh "${ARTIFACT_NAME}" "-DCMAKE_OSX_ARCHITECTURES=x86_64"
28
+ ./build_macosx .sh "x86_64" ${ARTIFACT_NAME}
90
29
91
- - name : Upload tarball
30
+ - name : Move tarballs
31
+ run : |
32
+ mkdir artifacts
33
+ mv libaec/libaec-*.tar.gz artifacts
34
+ mv libhdf5/libhdf5-*.tar.gz artifacts
35
+
36
+ - name : Upload tarballs
92
37
uses : actions/upload-artifact@v3
93
38
with :
94
- name : ${{ env.ARTIFACT_NAME }}
95
- path : hdf5/${{ env.ARTIFACT_NAME }}.tar.gz
39
+ path : artifacts/*.tar.gz
96
40
97
41
publish :
98
42
name : Publish libraries
99
- needs : [build_manylinux_x86_64, build_musllinux_x86_64, build_macosx_x86_64]
43
+ needs : [build_macosx_x86_64]
100
44
if : startsWith(github.ref, 'refs/tags/')
101
45
runs-on : ubuntu-latest
102
46
103
47
steps :
104
- - name : Download manylinux (x86_64) artifact
105
- uses : actions/download-artifact@v3
106
- with :
107
- name : manylinux_x86_64
108
- path : artifacts
109
-
110
- - name : Download musllinux (x86_64) artifact
111
- uses : actions/download-artifact@v3
112
- with :
113
- name : musllinux_x86_64
114
- path : artifacts
115
-
116
48
- name : Download macosx (x86_64) artifact
117
49
uses : actions/download-artifact@v3
118
50
with :
119
- name : macosx_x86_64
120
- path : artifacts
51
+ path : dump
121
52
122
53
- name : List artifacts
123
54
run : ls -R
124
- working-directory : artifacts
55
+ working-directory : dump
125
56
126
57
- name : Publish release
127
58
uses : softprops/action-gh-release@v1
128
59
with :
129
- name : " HDF5 1.12.2"
130
- files : artifacts /*
60
+ name : " HDF5 binaries ( 1.12.2) "
61
+ files : dump/* /*
0 commit comments