Update workflow
This commit is contained in:
parent
1628ab2c79
commit
fd0be9b608
6
.github/workflows/rust.yml
vendored
6
.github/workflows/rust.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
- name: Install Rustup
|
- name: Install Rustup
|
||||||
run: |
|
run: |
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||||
echo ::add-path::$HOME/.cargo/bin
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
|
|
||||||
- name: "Print Rust Version"
|
- name: "Print Rust Version"
|
||||||
|
@ -43,7 +43,7 @@ jobs:
|
||||||
path: binaries
|
path: binaries
|
||||||
key: ${{ runner.OS }}-binaries
|
key: ${{ runner.OS }}-binaries
|
||||||
- name: Add binaries/bin to PATH
|
- name: Add binaries/bin to PATH
|
||||||
run: echo ::add-path::$GITHUB_WORKSPACE/binaries/bin
|
run: echo "$GITHUB_WORKSPACE/binaries/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: "Run cargo build"
|
- name: "Run cargo build"
|
||||||
|
@ -75,7 +75,7 @@ jobs:
|
||||||
- name: Install Scoop (Windows)
|
- name: Install Scoop (Windows)
|
||||||
run: |
|
run: |
|
||||||
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
|
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
|
||||||
echo ::add-path::$HOME\scoop\shims
|
echo "$HOME\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
- name: Install QEMU (Windows)
|
- name: Install QEMU (Windows)
|
||||||
|
|
Loading…
Reference in a new issue