File tree Expand file tree Collapse file tree 4 files changed +56
-9
lines changed Expand file tree Collapse file tree 4 files changed +56
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Make JARs with CMake
2
2
on :
3
- - workflow_call
4
- - workflow_dispatch
3
+ workflow_call :
4
+ inputs :
5
+ c_blosc_version :
6
+ description : Semantic version of c-blosc to package.
7
+ type : string
8
+ default : " 1.21.5"
9
+ required : true
10
+
5
11
jobs :
6
12
ci-cmake :
7
13
name : ${{ matrix.name }}
40
46
- uses : actions/checkout@v4
41
47
with :
42
48
repository : Blosc/c-blosc
43
- ref : v1.21.5
49
+ ref : v${{ inputs.c_blosc_version }}
44
50
45
51
- name : Generate project files
46
52
run : |
Original file line number Diff line number Diff line change 1
1
name : Publish release to SciJava Maven
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ workflow_dispatch :
5
+ inputs :
6
+ c_blosc_version :
7
+ description : Semantic version of c-blosc to package.
8
+ type : string
9
+ default : " 1.21.5"
10
+ required : true
6
11
7
12
jobs :
8
13
jars :
9
14
name : Build jars
10
15
uses : ./.github/workflows/jars.yml
16
+ with :
17
+ c_blosc_version : ${{ inputs.c_blosc_version }}
18
+
19
+ release :
20
+ needs : jars
21
+ name : Draft release
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v4
26
+
27
+ - uses : actions/download-artifact@v4
28
+ with :
29
+ merge-multiple : true
30
+ pattern : blosc-natives*
31
+
32
+ - name : Release
33
+ env :
34
+ GH_TOKEN : ${{ github.token }}
35
+ run : |
36
+ gh release create --draft v${{ inputs.c_blosc_version }} -t ${{ github.sha }} --title v${{ inputs.c_blosc_version }} \
37
+ blosc-natives-v${{ inputs.c_blosc_version }}-darwin-aarch64.jar \
38
+ blosc-natives-v${{ inputs.c_blosc_version }}-darwin-x86-64.jar \
39
+ blosc-natives-v${{ inputs.c_blosc_version }}-linux-x86-64.jar \
40
+ blosc-natives-v${{ inputs.c_blosc_version }}-win32-x86-64.jar \
41
+ blosc-natives-v${{ inputs.c_blosc_version }}.jar
11
42
12
43
publish :
13
44
needs : jars
33
64
- name : Publish snapshot
34
65
35
66
with :
36
- arguments : publish -P release=true
67
+ arguments : publish -P release=true -P blosc_version=${{ inputs.c_blosc_version }}
37
68
env :
38
69
MAVEN_USER : ${{ secrets.MAVEN_USER }}
39
70
MAVEN_PASS : ${{ secrets.MAVEN_PASS }}
Original file line number Diff line number Diff line change @@ -2,12 +2,22 @@ name: Publish snapshot to SciJava Maven
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ c_blosc_version :
7
+ description : Semantic version of c-blosc to package.
8
+ type : string
9
+ default : " 1.21.5"
10
+ required : true
11
+
5
12
6
13
jobs :
7
14
jars :
8
15
name : Build jars
9
16
uses : ./.github/workflows/jars.yml
10
-
17
+ with :
18
+ c_blosc_version : ${{ inputs.c_blosc_version }}
19
+
20
+
11
21
publish :
12
22
needs : jars
13
23
34
44
- name : Publish snapshot
35
45
uses : gradle/gradle-build-action@v2
36
46
with :
37
- arguments : publish
47
+ arguments : publish -P blosc_version=${{ inputs.c_blosc_version }}
38
48
env :
39
49
MAVEN_USER : ${{ secrets.MAVEN_USER }}
40
50
MAVEN_PASS : ${{ secrets.MAVEN_PASS }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
3
3
}
4
4
5
5
group = ' io.github.qupath'
6
- version = ' 1.21.5 '
6
+ version = project . findProperty( " blosc_version " ) ?: " 1.21.6 "
7
7
8
8
publishing {
9
9
repositories {
You can’t perform that action at this time.
0 commit comments