Skip to content

Commit

Permalink
Try to fix release build
Browse files Browse the repository at this point in the history
Got an error that matches [this
issue](rust-build/rust-build.action#46),
attempting the workaround mentioned
  • Loading branch information
jacklund committed Mar 1, 2024
1 parent 0e513dc commit 55d711d
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,34 @@ jobs:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Build Artifacts
id: compile_linux
uses: rust-build/[email protected]
with:
RUSTTARGET: x86_64-unknown-linux-musl
UPLOAD_MODE: none

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile_linux.outputs.BUILT_ARCHIVE }}
${{ steps.compile_linux.outputs.BUILT_CHECKSUM }}
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@v3
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE-APACHE LICENSE-MIT"
name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
${{ steps.compile_linux.outputs.BUILT_ARCHIVE }}
${{ steps._linuxcompile.outputs.BUILT_CHECKSUM }}
README.md
LICENSE-APACHE
LICENSE-MIT

0 comments on commit 55d711d

Please sign in to comment.