Skip to content

Commit 9971c42

Browse files
Merge pull request #56 from soma-smart/fix_release
Fix Release with better action
2 parents 95d07a2 + 7bab058 commit 9971c42

1 file changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,32 @@ on:
77
jobs:
88
release:
99
name: release ${{ matrix.target }}
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
include:
1515
- target: x86_64-pc-windows-gnu
16-
archive: zip
16+
os: windows-latest
1717
- target: x86_64-unknown-linux-musl
18-
archive: tar.gz tar.xz
18+
os: ubuntu-latest
19+
- target: x86_64-apple-darwin
20+
os: macos-latest
21+
- target: aarch64-apple-darwin
22+
os: macos-latest
1923
steps:
20-
- uses: actions/checkout@master
21-
- name: Install rust specific version
22-
uses: actions-rs/toolchain@v1
24+
- uses: actions/checkout@v4
25+
- name: Install Rust
26+
uses: dtolnay/rust-toolchain@stable
2327
with:
24-
toolchain: 1.90.0
25-
override: true
26-
- name: Compile and release
27-
uses: rust-build/rust-build.action@v1.4.5
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
toolchain: 1.90.0
29+
targets: ${{ matrix.target }}
30+
- name: Install musl-tools on Linux
31+
if: matrix.target == 'x86_64-unknown-linux-musl'
32+
run: sudo apt-get update && sudo apt-get install -y musl-tools
33+
- name: Build and upload binary
34+
uses: taiki-e/upload-rust-binary-action@v1
3035
with:
31-
RUSTTARGET: ${{ matrix.target }}
32-
ARCHIVE_TYPES: ${{ matrix.archive }}
33-
MINIFY: true
36+
bin: fakelake
37+
target: ${{ matrix.target }}
38+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)