diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e923f4b..023deeb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,30 +3,24 @@ on: types: [created] jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: test release: - name: release package for all platforms - needs: test - runs-on: ${{ matrix.platform }} + name: release ${{ matrix.target }} + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - platform: [ubuntu-latest,macos-latest,windows-latest] + include: + - target: x86_64-pc-windows-gnu + archive: zip + - target: x86_64-unknown-linux-musl + archive: tar.gz tar.xz + - target: x86_64-apple-darwin + archive: zip steps: - uses: actions/checkout@master - name: Compile and release uses: rust-build/rust-build.action@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }}