Skip to content

Commit 3c06a76

Browse files
committed
it works?
1 parent 91c7533 commit 3c06a76

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,21 @@ jobs:
118118
with:
119119
ref: ${{ inputs.tag || '' }}
120120

121-
- uses: dtolnay/rust-toolchain@stable
121+
- uses: Swatinem/rust-cache@v2
122122
with:
123-
targets: ${{ matrix.target }}
123+
key: ${{ matrix.target }}
124+
cache-on-failure: true
124125

125126
- name: Install required Rust targets
126127
run: rustup target add ${{ matrix.target }}
128+
129+
- uses: dtolnay/rust-toolchain@stable
130+
with:
131+
targets: ${{ matrix.target }}
127132

128133
- name: Install cross v0.2.5 from source
129134
run: cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.5
130135

131-
- uses: Swatinem/rust-cache@v2
132-
with:
133-
key: ${{ matrix.target }}
134-
cache-on-failure: true
135136

136137
# We diverge from upstream and build with cross as we're building static binaries
137138
- name: Build binaries

Cross.toml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,3 @@ pre-build = [
1717
"dpkg --add-architecture $CROSS_DEB_ARCH",
1818
"apt-get update -q && apt-get install --assume-yes --no-install-recommends libssl-dev:$CROSS_DEB_ARCH pkg-config",
1919
]
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-
]

0 commit comments

Comments
 (0)