File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 6060 env :
6161 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6262
63+ build-linux-arm64 :
64+ needs : pre_job
65+ if : needs.pre_job.outputs.should_skip != 'true' || startsWith(github.ref, 'refs/tags/')
66+
67+ name : Linux arm64
68+ runs-on : ubuntu-latest
69+
70+ steps :
71+ - name : Checkout
72+ uses : actions/checkout@v3
73+
74+ - name : Apt
75+ run : sudo apt-get install gcc-aarch64-linux-gnu
76+
77+ - name : Install Toolchain
78+ uses : oxidecomputer/actions-rs_toolchain@ad3f86084a8a5acf2c09cb691421b31cf8af7a36 # pin@oxide/master
79+ with :
80+ toolchain : stable
81+ target : aarch64-unknown-linux-gnu
82+ profile : minimal
83+ override : true
84+
85+ - name : Cache
86+ uses : Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # pin@v2
87+
88+ - name : Build
89+ run : RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --target aarch64-unknown-linux-gnu --release && mv target/aarch64-unknown-linux-gnu/release/squawk target/release/squawk-linux-arm64
90+
91+ - name : Artifact
92+ uses : actions/upload-artifact@v3
93+ with :
94+ name : release
95+ path : target/release/squawk-linux-arm64
96+
97+ - name : Release
98+ uses : softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1
99+ if : startsWith(github.ref, 'refs/tags/')
100+ with :
101+ files : |
102+ target/release/squawk-linux-arm64
103+ env :
104+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105+
63106 build-windows :
64107 needs : pre_job
65108 if : needs.pre_job.outputs.should_skip != 'true' || startsWith(github.ref, 'refs/tags/')
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ const SUPPORTED_PLATFORMS = new Set([
5050 "darwin-x64" ,
5151 "darwin-arm64" ,
5252 "linux-x64" ,
53+ "linux-arm64" ,
5354 "win32-x64" ,
5455] )
5556const BINARY_NAME_OVERRIDE = new Map ( [ [ "win32-x64" , "squawk-windows-x64.exe" ] ] )
You can’t perform that action at this time.
0 commit comments