File tree Expand file tree Collapse file tree 2 files changed +7
-20
lines changed Expand file tree Collapse file tree 2 files changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -118,20 +118,21 @@ jobs:
118
118
with :
119
119
ref : ${{ inputs.tag || '' }}
120
120
121
- - uses : dtolnay /rust-toolchain@stable
121
+ - uses : Swatinem /rust-cache@v2
122
122
with :
123
- targets : ${{ matrix.target }}
123
+ key : ${{ matrix.target }}
124
+ cache-on-failure : true
124
125
125
126
- name : Install required Rust targets
126
127
run : rustup target add ${{ matrix.target }}
128
+
129
+ - uses : dtolnay/rust-toolchain@stable
130
+ with :
131
+ targets : ${{ matrix.target }}
127
132
128
133
- name : Install cross v0.2.5 from source
129
134
run : cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.5
130
135
131
- - uses : Swatinem/rust-cache@v2
132
- with :
133
- key : ${{ matrix.target }}
134
- cache-on-failure : true
135
136
136
137
# We diverge from upstream and build with cross as we're building static binaries
137
138
- name : Build binaries
Original file line number Diff line number Diff line change @@ -17,17 +17,3 @@ pre-build = [
17
17
" dpkg --add-architecture $CROSS_DEB_ARCH" ,
18
18
" apt-get update -q && apt-get install --assume-yes --no-install-recommends libssl-dev:$CROSS_DEB_ARCH pkg-config" ,
19
19
]
20
-
21
- [target .x86_64-apple-darwin ]
22
- image = " macosx-amd64"
23
- pre-build = [
24
- " brew install make" ,
25
- ]
26
-
27
- [target .aarch64-apple-darwin ]
28
- image = " aarch64-apple-darwin"
29
- pre-build = [
30
- " export SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" ,
31
- " export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" ,
32
- " brew install make" ,
33
- ]
You can’t perform that action at this time.
0 commit comments