File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 3232 target : " " ,
3333 targetDir : " target/release" ,
3434 }
35+ - {
36+ os : " ubuntu-latest" ,
37+ arch : " aarch64" ,
38+ wasiSDK : " linux" ,
39+ extension : " " ,
40+ buildArgs : " \" --target aarch64-unknown-linux-gnu\" " ,
41+ target : " aarch64-unknown-linux-gnu" ,
42+ targetDir : " target/aarch64-unknown-linux-gnu/release" ,
43+ }
3544 - {
3645 os : " macos-latest" ,
3746 arch : " amd64" ,
@@ -124,6 +133,14 @@ jobs:
124133 cd crates/spin-js-engine/src/js_sdk
125134 npm install -
126135
136+ - name : setup for cross-compiled linux aarch64 build
137+ if : matrix.config.target == 'aarch64-unknown-linux-gnu'
138+ run : |
139+ sudo apt update
140+ sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
141+ echo '[target.aarch64-unknown-linux-gnu]' >> ${HOME}/.cargo/config.toml
142+ echo 'linker = "aarch64-linux-gnu-gcc"' >> ${HOME}/.cargo/config.toml
143+
127144 - name : Build spinjs
128145 shell : bash
129146 run : |
You can’t perform that action at this time.
0 commit comments