Skip to content

Commit

Permalink
Set env CI variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrLSD committed Sep 19, 2023
1 parent 73c3c9c commit cd5ee00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
name: Format
runs-on: [self-hosted, light]
steps:
- name: Set rust version
run: |
rustup show
rustup default ${{ env.RUST_VERSION }}
- name: Clone the repository
uses: actions/checkout@v2
- name: Run cargo fmt
Expand All @@ -24,14 +20,7 @@ jobs:
name: Clippy
runs-on: [self-hosted, heavy]
steps:
- name: Set rust version
run: |
rustup show
rustup default ${{ env.RUST_VERSION }}
- name: Clone the repository
uses: actions/checkout@v2
- name: Run Contract cargo lint checker
run: cargo make check

env:
RUST_VERSION: 1.72.0
10 changes: 2 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
name: Test suite (mainnet)
runs-on: [self-hosted, heavy]
steps:
- name: Set rust version
run: |
rustup show
rustup default ${{ env.RUST_VERSION }}
- name: Clone the repository
uses: actions/checkout@v2
- name: Restore cache
Expand All @@ -24,7 +20,6 @@ jobs:
- name: Install sandbox
run: |
if [[ ! -f ${{ env.NEAR_SANDBOX_BIN_PATH }} ]]; then
mkdir -p $HOME/bin
rm -rf nearcore
git clone --depth 1 --branch 1.35.0 https://github.com/near/nearcore
cd nearcore
Expand All @@ -35,13 +30,12 @@ jobs:
rm -rf nearcore
fi
- name: Test mainnet
run: NEAR_SANDBOX_BIN_PATH=${{ env.NEAR_SANDBOX_BIN_PATH }} cargo make --profile mainnet test
run: cargo make --profile mainnet test
- name: Save cache
run: |
cache-util save cargo_git cargo_registry
env:
RUST_VERSION: 1.72.0
NEAR_SANDBOX_BIN_PATH: $HOME/bin/near-sandbox
NEAR_SANDBOX_BIN_PATH: /usr/local/bin/near-sandbox
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[toolchain]
hannel = "1.72.1"
targets = ["wasm32-unknown-unknown"]

0 comments on commit cd5ee00

Please sign in to comment.