File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build runzip
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ ripunzip-version :
7
+ description : " what reference to checktout from google/runzip"
8
+ required : false
9
+ default : v1.2.1
10
+
11
+ jobs :
12
+ build :
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ os : [ubuntu-20.04, macos-12, windows-2019]
17
+ runs-on : ${{ matrix.os }}
18
+ env :
19
+ OS : ${{ matrix.os }}
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ repository : google/ripunzip
24
+ ref : ${{ inputs.ripunzip-version }}
25
+ - shell : bash
26
+ if : runner.os != 'macOS'
27
+ run : |
28
+ cargo build --release
29
+ mv target/release/ripunzip ripunzip-${OS,,}
30
+ - shell : bash
31
+ if : runner.os == 'macOS'
32
+ run : |
33
+ rustup --target x86_64-apple-darwin
34
+ rustup --target aarch64-apple-darwin
35
+ cargo build --target x86_64-apple-darwin --release
36
+ cargo build --target aarch64-apple-darwin --release
37
+ lipo -create -output ripunzip-macos \
38
+ -arch x86_64 target/x86_64-apple-darwin/release/ripunzip \
39
+ -arch arm64 target/aarch64-apple-darwin/release/ripunzip
40
+ - uses : actions/upload-artifact@v4
41
+ with :
42
+ name : ripunzip-${{ runner.os }}
43
+ path : ripunzip-*
You can’t perform that action at this time.
0 commit comments