File tree Expand file tree Collapse file tree 3 files changed +53
-2259
lines changed Expand file tree Collapse file tree 3 files changed +53
-2259
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+
7
+ jobs :
8
+ build :
9
+ name : Build ${{ matrix.platform.os_name }}
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ platform :
15
+ - os_name : Android-aarch64
16
+ target : aarch64-linux-android
17
+ binary_name : axs-android-arm64
18
+ - os_name : Android-armv7
19
+ target : armv7-linux-androideabi
20
+ binary_name : axs-android-armv7
21
+ toolchain :
22
+ - stable
23
+
24
+ steps :
25
+ - name : Checkout repository
26
+ uses : actions/checkout@v3
27
+
28
+ - name : Install cross
29
+ run : cargo install cross --git https://github.com/cross-rs/cross.git --branch main
30
+
31
+ - name : Add Rust target
32
+ run : rustup target add ${{ matrix.platform.target }}
33
+
34
+ - name : Build binary with cross
35
+ run : cross build --release --target ${{ matrix.platform.target }}
36
+
37
+ - name : Rename binary
38
+ run : mv target/${{ matrix.platform.target }}/release/axs target/${{ matrix.platform.target }}/release/${{ matrix.platform.binary_name }}
39
+
40
+ - name : Generate SHA-256
41
+ run : |
42
+ cd target/${{ matrix.platform.target }}/release
43
+ sha256sum ${{ matrix.platform.binary_name }} > ${{ matrix.platform.binary_name }}.sha256
44
+
45
+ - name : Upload artifacts
46
+ uses : actions/upload-artifact@v4
47
+ with :
48
+ name : ${{ matrix.platform.binary_name }}
49
+ path : |
50
+ target/${{ matrix.platform.target }}/release/${{ matrix.platform.binary_name }}
51
+ target/${{ matrix.platform.target }}/release/${{ matrix.platform.binary_name }}.sha256
You can’t perform that action at this time.
0 commit comments