Fix rust cache
@@ -13,7 +13,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: Swatinem/rust-cache@v1
+ - uses: actions/checkout@v2
+ # might or might not be required
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
@@ -21,6 +26,10 @@ jobs:
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
+ #rustup needs to have been called before the cache action, and the cache action before the cargo commands
+ - name: Finish rust setup
+ run: rustup target add wasm32-unknown-unknown
+ - uses: Swatinem/rust-cache@v1
- name: Install dependencies
run: |
rustup target add wasm32-unknown-unknown
@@ -36,7 +45,6 @@ jobs:
wget https://github.com/mozilla/geckodriver/releases/download/v0.29.1/geckodriver-v0.29.1-linux64.tar.gz
tar -xf geckodriver*.tar.gz
export PATH=$PATH:`pwd`
- - uses: actions/checkout@v2
- name: Check format
run: cargo fmt -- --check
- name: Run all unit tests
