build: 👷 update checkout, download, upload, release workflow dependencies
This commit is contained in:
parent
04f22c2763
commit
7e2f12bea6
3 changed files with 13 additions and 13 deletions
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
|
@ -13,14 +13,14 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --release --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Upload Linux Binary
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: banker_algorithm_linux_x64_86
|
||||
path: target/release/banker-algorithm
|
||||
|
@ -30,14 +30,14 @@ jobs:
|
|||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --release --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Upload Windows Binary
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: banker_algorithm_windows_x64_86
|
||||
path: target/release/banker-algorithm.exe
|
||||
|
@ -47,14 +47,14 @@ jobs:
|
|||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: cargo build --release --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Upload MacOS Binary
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: banker_algorithm_macos_x64_86
|
||||
path: target/release/banker-algorithm
|
||||
|
@ -66,12 +66,12 @@ jobs:
|
|||
contents: write
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Forge a Folder
|
||||
run: mkdir Downloads
|
||||
working-directory: /home/runner/work/banker-algorithm/banker-algorithm/
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
- uses: actions/download-artifact@v4
|
||||
name: Download
|
||||
with:
|
||||
path: Downloads/
|
||||
|
@ -88,7 +88,7 @@ jobs:
|
|||
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
||||
echo "short_sha=$calculatedSha" >> $GITHUB_OUTPUT
|
||||
|
||||
- uses: softprops/action-gh-release@v0.1.15
|
||||
- uses: softprops/action-gh-release@v2
|
||||
name: Release
|
||||
with:
|
||||
tag_name: ${{ steps.vars.outputs.short_sha }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue