Skip to content

Commit 5a6955b

Browse files
authored
Update release.yml
1 parent 73bf804 commit 5a6955b

File tree

1 file changed

+36
-37
lines changed

1 file changed

+36
-37
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Release Binary
32

43
on:
@@ -23,52 +22,51 @@ jobs:
2322
arch: aarch64
2423
target: aarch64-unknown-linux-gnu
2524
ext: ""
26-
- os: windows
27-
arch: x86_64
28-
target: x86_64-pc-windows-msvc
29-
ext: ".exe"
30-
- os: windows
31-
arch: aarch64
32-
target: aarch64-pc-windows-msvc
33-
ext: ".exe"
34-
- os: macos
35-
arch: x86_64
36-
target: x86_64-apple-darwin
37-
ext: ""
38-
- os: macos
39-
arch: aarch64
40-
target: aarch64-apple-darwin
41-
ext: ""
25+
# - os: windows
26+
# arch: x86_64
27+
# target: x86_64-pc-windows-msvc
28+
# ext: ".exe"
29+
# - os: windows
30+
# arch: aarch64
31+
# target: aarch64-pc-windows-msvc
32+
# ext: ".exe"
33+
# - os: macos
34+
# arch: x86_64
35+
# target: x86_64-apple-darwin
36+
# ext: ""
37+
# - os: macos
38+
# arch: aarch64
39+
# target: aarch64-apple-darwin
40+
# ext: ""
4241
- os: freebsd
4342
arch: x86_64
4443
target: x86_64-unknown-freebsd
4544
ext: ""
46-
- os: freebsd
47-
arch: aarch64
48-
target: aarch64-unknown-freebsd
49-
ext: ""
50-
- os: openbsd
51-
arch: x86_64
52-
target: x86_64-unknown-openbsd
53-
ext: ""
54-
- os: openbsd
55-
arch: aarch64
56-
target: aarch64-unknown-openbsd
57-
ext: ""
45+
# - os: freebsd
46+
# arch: aarch64
47+
# target: aarch64-unknown-freebsd
48+
# ext: ""
49+
# - os: openbsd
50+
# arch: x86_64
51+
# target: x86_64-unknown-openbsd
52+
# ext: ""
53+
# - os: openbsd
54+
# arch: aarch64
55+
# target: aarch64-unknown-openbsd
56+
# ext: ""
5857
steps:
5958
- uses: actions/checkout@v4
60-
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9
61-
with:
62-
toolchain: stable
63-
profile: minimal
64-
override: true
59+
- name: Setup Rust
60+
uses: leynos/shared-actions/.github/actions/setup-rust@c6559452842af6a83b83429129dccaf910e34562
6561
- name: Cache cross binary
6662
uses: actions/cache@v4
6763
with:
6864
path: ~/.cargo/bin/cross
69-
key: cross-${{ runner.os }}
65+
key: cross-v0.2.5-${{ runner.os }}
7066
- name: Install cross
71-
run: cargo install cross --git https://github.com/cross-rs/cross
67+
env:
68+
RUSTFLAGS: ""
69+
run: cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.5
7270
- name: Cache cargo registry
7371
uses: actions/cache@v4
7472
with:
@@ -79,6 +77,8 @@ jobs:
7977
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
8078
restore-keys: |
8179
${{ runner.os }}-cargo-
80+
- name: Add release target
81+
run: rustup target add ${{ matrix.target }}
8282
- name: Build release binary
8383
run: cross +stable build --release --target ${{ matrix.target }}
8484
- name: Prepare artifact
@@ -113,4 +113,3 @@ jobs:
113113
done
114114
env:
115115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116-

0 commit comments

Comments
 (0)