Skip to content

Commit e00982f

Browse files
authored
Update cross-platform.yml
1 parent 7150c32 commit e00982f

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/cross-platform.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,26 @@ jobs:
5555
working-directory: .
5656
continue-on-error: true
5757

58-
- name: Rust Release binary
59-
if: runner.os == 'linux'
58+
release:
59+
name: release ${{ matrix.target }}
60+
runs-on: ubuntu-latest
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
include:
65+
- target: x86_64-pc-windows-gnu
66+
archive: zip
67+
- target: x86_64-unknown-linux-musl
68+
archive: tar.gz tar.xz tar.zst
69+
- target: x86_64-apple-darwin
70+
archive: zip
71+
steps:
72+
- uses: actions/checkout@master
73+
- name: Compile and release
6074
uses: rust-build/[email protected]
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6177
with:
62-
RUSTTARGET: "osvm"
78+
RUSTTARGET: ${{ matrix.target }}
79+
ARCHIVE_TYPES: ${{ matrix.archive }}
80+

0 commit comments

Comments
 (0)