Skip to content

Commit fd322c6

Browse files
committed
Fix rust cache
1 parent d08eef5 commit fd322c6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,23 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: Swatinem/rust-cache@v1
16+
- uses: actions/checkout@v2
17+
# might or might not be required
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
profile: minimal
21+
toolchain: stable
1722
- name: Set up Python 3.x
1823
uses: actions/setup-python@v2
1924
with:
2025
# Semantic version range syntax or exact version of a Python version
2126
python-version: '3.x'
2227
# Optional - x64 or x86 architecture, defaults to x64
2328
architecture: 'x64'
29+
#rustup needs to have been called before the cache action, and the cache action before the cargo commands
30+
- name: Finish rust setup
31+
run: rustup target add wasm32-unknown-unknown
32+
- uses: Swatinem/rust-cache@v1
2433
- name: Install dependencies
2534
run: |
2635
rustup target add wasm32-unknown-unknown
@@ -36,7 +45,6 @@ jobs:
3645
wget https://github.com/mozilla/geckodriver/releases/download/v0.29.1/geckodriver-v0.29.1-linux64.tar.gz
3746
tar -xf geckodriver*.tar.gz
3847
export PATH=$PATH:`pwd`
39-
- uses: actions/checkout@v2
4048
- name: Check format
4149
run: cargo fmt -- --check
4250
- name: Run all unit tests

0 commit comments

Comments
 (0)