Skip to content

Commit

Permalink
Fixed Rust release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-e authored Sep 20, 2024
1 parent 444c6f2 commit 7a17524
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -27,11 +27,26 @@ jobs:
- name: Build
run: cargo build --release

- name: Upload artifact
- name: Upload artifact (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: windows-latest-build
path: target/release/arnis.exe

- name: Upload artifact (Linux)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-build
path: target/release/
name: ubuntu-latest-build
path: target/release/arnis

- name: Upload artifact (MacOS)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v3
with:
name: macos-latest-build
path: target/release/arnis

release:
runs-on: ubuntu-latest
Expand All @@ -40,7 +55,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Download build artifacts
- name: Download build artifacts (Ubuntu)
uses: actions/download-artifact@v3
with:
name: ubuntu-latest-build
Expand Down

0 comments on commit 7a17524

Please sign in to comment.