Skip to content

Commit

Permalink
fix: GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoccesar committed May 10, 2024
1 parent 76c2253 commit 6941a13
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,38 @@ on:

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
name: Release - ${{ matrix.platform.release_for }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-apple-darwin
archive: zip
platform:
- release_for: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
bin: repos
name: repos-Darwin-x86_64.tar.gz
command: both
toolchain:
- stable
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
TOOLCHAIN_VERSION: stable
- name: Checkout
uses: actions/checkout@v3
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Publish release artifacts
uses: actions/upload-artifact@v3
with:
name: repos-${{ matrix.platform.os_name }}
path: "repos-*"
- name: Generate SHA-256
run: shasum -a 256 ${{ matrix.platform.name }}
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
draft: true
files: "repos*"

0 comments on commit 6941a13

Please sign in to comment.