21
21
container-options : " --rm"
22
22
target : " aarch64-apple-darwin"
23
23
- host : macos-latest
24
+ container-options : " --rm"
24
25
target : " x86_64-apple-darwin"
25
26
- host : ubuntu-latest
26
27
container-options : " --rm"
@@ -41,35 +42,18 @@ jobs:
41
42
42
43
setup : |
43
44
pnpm install
44
- - host : ubuntu-latest
45
- target : " aarch64-unknown-linux-musl"
46
- container-options : " --rm"
47
- install : |
48
- apt-get update
49
- apt-get install -y curl musl-tools
50
-
51
- setup : |
52
- pnpm install
53
- - host : ubuntu-latest
54
- target : " x86_64-unknown-linux-musl"
55
- container-options : " --rm"
56
- install : |
57
- apt-get update
58
- apt-get install -y curl musl-tools
59
-
60
- setup : |
61
- pnpm install
62
45
- host : ubuntu-latest
63
46
container : ubuntu:xenial
64
47
container-options : " --platform=linux/amd64 --rm"
65
- container-setup : " apt-get update && apt-get install -y curl musl-tools sudo"
48
+ container-setup :
" apt-get update && apt-get install -y curl musl-tools sudo && npm i -g [email protected] "
66
49
target : " x86_64-unknown-linux-musl"
67
- setup : " apt-get install -y build-essential clang-5.0 lldb-5.0 llvm-5.0-dev libclang-5.0-dev"
50
+ setup : " sudo apt-get install -y build-essential clang-5.0 lldb-5.0 llvm-5.0-dev libclang-5.0-dev && pnpm install "
68
51
- host : ubuntu-latest
69
52
container-options : " --rm"
53
+ container-setup :
" npm i -g [email protected] "
70
54
target : " aarch64-unknown-linux-musl"
71
55
rust-build-env : ' CC_aarch64_unknown_linux_musl=clang AR_aarch64_unknown_linux_musl=llvm-ar RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"'
72
- setup : " sudo apt-get update && sudo apt-get install -y build-essential musl-tools clang llvm gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu"
56
+ setup : " sudo apt-get update && sudo apt-get install -y build-essential musl-tools clang llvm gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu && pnpm install "
73
57
- host : windows-latest
74
58
container-options : " --rm"
75
59
target : " aarch64-pc-windows-msvc"
@@ -95,11 +79,12 @@ jobs:
95
79
with :
96
80
fetch-depth : 0
97
81
98
- - name : Setup Rust
99
- uses : ./.github/ actions/setup-rust
82
+ - name : Rust Setup
83
+ uses : actions-rs/toolchain@v1
100
84
with :
101
- targets : ${{ matrix.settings.target }}
102
- if : ${{ !matrix.settings.install }}
85
+ profile : minimal
86
+ override : true
87
+ target : ${{ matrix.settings.target }}
103
88
104
89
- name : Setup Node
105
90
uses : ./.github/actions/setup-node
114
99
- name : Build native library
115
100
run : |
116
101
cd packages/turbo-repository
117
- pnpm build:release --target=${{ matrix.settings.target }} --cargo-flags=" ${{ matrix.settings.rust-build-env }}"
102
+ pnpm build:release --target=${{ matrix.settings.target }} --cargo-flags=${{ matrix.settings.rust-build-env }}
118
103
119
104
- name : Upload Artifacts
120
105
uses : actions/upload-artifact@v3
0 commit comments