File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,9 @@ jobs:
113
113
include :
114
114
- os : ubuntu-18.04
115
115
target : x86_64-unknown-linux-gnu
116
- # TODO: this compliation target fails
117
- # https://github.com/temporalio/sdk-typescript/runs/4241087289?check_suite_focus=true#step:8:119
118
- # - os: ubuntu-latest
119
- # target: aarch64-unknown-linux-gnu
116
+ - os : ubuntu-18.04
117
+ target : aarch64-unknown-linux-gnu
118
+ rustflags : ' -C linker=aarch64-linux-gnu-gcc'
120
119
- os : macos-latest
121
120
target : x86_64-apple-darwin
122
121
- os : macos-latest
@@ -139,11 +138,16 @@ jobs:
139
138
- name : Print libc version
140
139
run : ldd --version
141
140
if : ${{ matrix.os == 'ubuntu-18.04' }}
141
+ - name : Install gcc-aarch64-linux-gnu
142
+ run : sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu
143
+ if : ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
142
144
# Don't build during install phase since we're going to explicitly build
143
145
- run : npm ci --ignore-scripts
144
146
- name : Compile all non-rust code
145
147
run : npm run ci-build-no-rust
146
148
- name : Cross compile rust code
149
+ env :
150
+ RUSTFLAGS : ${{ matrix.rustflags }}
147
151
run : npx lerna run --stream build-rust-release -- -- --target ${{ matrix.target }}
148
152
# Restore the CLI JS only on Windows because Windows build changes the
149
153
# file attributes causing publish to think the change is uncommitted
Original file line number Diff line number Diff line change 1
1
# Copy this file to ~/.cargo/config.toml in order to cross-compile for Linux and Windows
2
2
[target .x86_64-unknown-linux-gnu ]
3
- linker = " x86_64-unknown- linux-gnu-gcc"
3
+ linker = " x86_64-linux-gnu-gcc"
4
4
[target .aarch64-unknown-linux-gnu ]
5
- linker = " aarch64-unknown- linux-gnu-gcc"
5
+ linker = " aarch64-linux-gnu-gcc"
6
6
[target .x86_64-pc-windows-gnu ]
7
7
linker = " /usr/local/bin/x86_64-w64-mingw32-gcc"
You can’t perform that action at this time.
0 commit comments