forked from hyperledger-solang/solang
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
8 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,11 +100,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
default: true | ||
toolchain: 1.63.0 | ||
- uses: dtolnay/[email protected] | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
# We may not have enough space to compile llvm, see https://github.com/actions/virtual-environments/issues/326 | ||
working-directory: C:\ | ||
|
@@ -152,11 +148,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
default: true | ||
profile: minimal | ||
- uses: dtolnay/[email protected] | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
|
@@ -201,11 +193,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
default: true | ||
profile: minimal | ||
- uses: dtolnay/[email protected] | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,11 +108,8 @@ 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@1.63.0 | ||
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 | ||
|
@@ -135,11 +132,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
default: true | ||
profile: minimal | ||
- uses: dtolnay/[email protected] | ||
- 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 | ||
|
@@ -163,11 +156,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
default: true | ||
profile: minimal | ||
- uses: dtolnay/[email protected] | ||
- 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 | ||
|
@@ -353,10 +342,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 | ||
|