Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
up
  • Loading branch information
shunsukew committed Feb 16, 2023
commit c427d68b630004844ddd48bb1171a4ce512a9b2d
20 changes: 11 additions & 9 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ jobs:
uses: actions/checkout@v3

- name: Install & display rust toolchain
run: rustup show
run: |
rustup show
rustup component add rust-src

- name: Check targets are installed correctly
run: rustup target list --installed

# - name: Cache Crates
# uses: actions/cache@v3
# with:
# path: ~/.cargo
# key: rust-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}
# restore-keys: |
# rust-${{ runner.os }}-
- name: Cache Crates
uses: actions/cache@v3
with:
path: ~/.cargo
key: ${{ runner.os }}-rust-${{ hashFiles('rust-toolchain.toml') }}
restore-keys: |
${{ runner.os }}-rust

- name: Check if cargo-contract exists
id: check-cargo-contract
Expand All @@ -31,7 +33,6 @@ jobs:
- name: Install cargo contract
if: ${{ steps.check-cargo-contract.outcome == 'failure' }}
run: |
rustup component add rust-src
sudo apt-get install binaryen
cargo install cargo-dylint dylint-link
# Until 2.0.0 official release, we need to specify --version expressly
Expand All @@ -41,6 +42,7 @@ jobs:
run: |
manifest_paths=(`find uniswap-v2/contracts -type f -name Cargo.toml`)
for manifest_path in $manifest_paths; do
echo $manifest_path
cargo contract check --manifest-path $manifest_path
done

Expand Down