Skip to content

Commit

Permalink
chore: Update Rust workflow to use actions-rs/toolchain@v2 for settin…
Browse files Browse the repository at this point in the history
…g up Rust stable with minimal profile, and download Windows and Linux artifacts separately
  • Loading branch information
edgarburgues committed May 15, 2024
1 parent 5032f10 commit 9ed7e8b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Rust stable
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v2
with:
profile: minimal
toolchain: stable
- name: Build
run: cargo build --release --verbose
Expand All @@ -41,12 +42,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Download artifacts
- name: Download Windows artifact
uses: actions/download-artifact@v3
with:
name: ml2pdf-windows
path: ./artifacts
- name: Download artifacts
- name: Download Linux artifact
uses: actions/download-artifact@v3
with:
name: ml2pdf-linux
Expand All @@ -69,7 +70,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/target/release/ml2pdf.exe
asset_path: ./artifacts/ml2pdf-windows/ml2pdf.exe
asset_name: ml2pdf.exe
asset_content_type: application/octet-stream

Expand All @@ -79,6 +80,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/target/release/ml2pdf
asset_path: ./artifacts/ml2pdf-linux/ml2pdf
asset_name: ml2pdf
asset_content_type: application/octet-stream

0 comments on commit 9ed7e8b

Please sign in to comment.