Skip to content

Commit

Permalink
Fix github deprecated warnings
Browse files Browse the repository at this point in the history
Every CI run we get tons of warnings like:

The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files.

It looks like actions-rs/toolchain is unmaintained:

actions-rs/toolchain#221

Many projects are switching over to dtolnay/rust-toolchain, let's do
the same.

Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Dec 5, 2022
1 parent 035b15b commit 95103a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
default: true
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.63.0
default: true
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.63.0
default: true
Expand Down
23 changes: 9 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@ jobs:
run: unzip c:\llvm.zip -d c:/
- name: Add LLVM to Path
run: echo "c:\llvm13.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: 1.63.0
default: true
components: clippy
# We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items
- name: Run cargo clippy
Expand All @@ -135,11 +134,10 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.63.0
default: true
profile: minimal
toolchain: 1.63.0
profile: minimal
- name: Get LLVM
run: curl -L --output llvm13.0-mac-arm.tar.xz https://github.com/hyperledger/solang/releases/download/v0.2.0/llvm13.0-mac-arm.tar.xz
- name: Extract LLVM
Expand All @@ -163,11 +161,10 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.63.0
default: true
profile: minimal
toolchain: 1.63.0
profile: minimal
- name: Get LLVM
run: wget -q -O llvm13.0-mac-intel.tar.xz https://github.com/hyperledger/solang/releases/download/v0.2.0/llvm13.0-mac-intel.tar.xz
- name: Extract LLVM
Expand Down Expand Up @@ -353,10 +350,8 @@ jobs:
- run: npm run compile
working-directory: ./vscode
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
working-directory: ./vscode
run: npm test
run: xvfb-run npm test
working-directory: ./vscode
- run: npm install -g vsce
working-directory: ./vscode
- run: vsce package
Expand Down

0 comments on commit 95103a4

Please sign in to comment.