Skip to content

Commit

Permalink
rust release - cache, checkout@v3, rust tooling provided
Browse files Browse the repository at this point in the history
  • Loading branch information
millergarym committed May 2, 2023
1 parent ec8128c commit 56695d0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/rust-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
os: [ubuntu-20.04, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Fetch all history so git describe works
- run: |
git fetch --prune --unshallow
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
# When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
# This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
- run: |
rustup set auto-self-update disable
rustup toolchain install nightly --profile minimal
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: Swatinem/rust-cache@v2

- run: cargo +nightly build --release

- uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: radlc-macOS/radlc
asset_name: radl-${{ steps.version.outputs.version }}-osx
asset_name: radlc-${{ steps.version.outputs.version }}-osx
asset_content_type: application/octet-stream

- name: Upload linux build
Expand All @@ -85,5 +85,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: radlc-linux/radlc
asset_name: adl-${{ steps.version.outputs.version }}-linux
asset_name: radlc-${{ steps.version.outputs.version }}-linux
asset_content_type: application/octet-stream

0 comments on commit 56695d0

Please sign in to comment.