@@ -45,38 +45,70 @@ jobs:
45
45
files : " tw-x86-linux-gnu;./target/debian/*.deb;./target/generate-rpm/*.rpm"
46
46
repo-token : ${{ secrets.GITHUB_TOKEN }}
47
47
48
- build-and-upload-linux-arm-v6-v7-v8 :
48
+ build-and-upload-linux-arm-v7 :
49
49
50
+ runs-on : ubuntu-latest
50
51
if : startsWith(github.event.release.tag_name, 'v')
51
- strategy :
52
- matrix :
53
- os : [ubuntu-latest]
54
- target : [arm-unknown-linux-gnueabihf, armv7-unknown-linux-gnueabihf, aarch64-unknown-linux-gnu]
55
- runs-on : ${{ matrix.os }}
56
52
57
53
steps :
58
54
- name : Checkout to the latest version
59
55
uses : actions/checkout@v4
60
56
61
- - name : Install GCC
62
- run : sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential libzstd-dev gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
57
+ - name : Install build tools
58
+ run : sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential libzstd-dev gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
59
+
60
+ - name : Set linker
61
+ run : export CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
63
62
64
63
- name : Install Rust
65
- run : rustup target add ${{ matrix.target }}
64
+ run : rustup target add armv7-unknown-linux-gnueabihf
66
65
67
66
- name : Build
68
- run : cargo build --release --verbose --target ${{ matrix.target }}
67
+ run : cargo build --release --verbose --target armv7-unknown-linux-gnueabihf
69
68
70
69
- name : Test
71
70
run : cargo test --all --release
72
71
73
72
- name : Rename before upload
74
- run : mv target/${{ matrix.target }} /release/tw.exe tw-${{matrix.target}}.exe
73
+ run : mv target/armv7-unknown-linux-gnueabihf /release/tw tw-armv7-unknown-linux-gnueabihf
75
74
76
75
- name : Upload artifacts to release
77
76
78
77
with :
79
- files : tw-${{matrix.target}}.exe
78
+ files : tw-armv7-unknown-linux-gnueabihf
79
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
80
+
81
+ build-and-upload-linux-aarch64 :
82
+
83
+ runs-on : ubuntu-latest
84
+ if : startsWith(github.event.release.tag_name, 'v')
85
+
86
+ steps :
87
+ - name : Checkout to the latest version
88
+ uses : actions/checkout@v4
89
+
90
+ - name : Install build tools
91
+ run : sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential libzstd-dev gcc-aarch64-linux-gnu libc6-dev-arm64-cross
92
+
93
+ - name : Set linker
94
+ run : export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
95
+
96
+ - name : Install Rust
97
+ run : rustup target add aarch64-unknown-linux-gnu
98
+
99
+ - name : Build
100
+ run : cargo build --release --verbose --target aarch64-unknown-linux-gnu
101
+
102
+ - name : Test
103
+ run : cargo test --all --release
104
+
105
+ - name : Rename before upload
106
+ run : mv target/aarch64-unknown-linux-gnu/release/tw tw-aarch64-unknown-linux-gnu
107
+
108
+ - name : Upload artifacts to release
109
+
110
+ with :
111
+ files : tw-aarch64-unknown-linux-gnu
80
112
repo-token : ${{ secrets.GITHUB_TOKEN }}
81
113
82
114
build-and-upload-windows :
0 commit comments