Update README.md #41
Workflow file for this run
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
name: "Main" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
dep-install: | |
name: "Run dependency install" | |
timeout-minutes: 30 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20.0.0" | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Checkout repo | |
uses: actions/checkout@main | |
with: | |
submodules: "true" | |
- name: Install other dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install zsh -y | |
make install_solc_linux | |
# yarn install | |
make install-opencl | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Restore crates | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('./testing/Cargo.lock') }} | |
smoke-tests: | |
name: "Run smoke tests" | |
timeout-minutes: 30 | |
runs-on: ubuntu-22.04 | |
needs: [dep-install] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- name: Compile contracts | |
run: ./testing/smoke_tests.sh | |
miner-integration: | |
name: "Miner API: integration tests" | |
timeout-minutes: 30 | |
runs-on: ubuntu-22.04 | |
needs: [dep-install] | |
steps: | |
- name: Run miner test | |
run: | | |
cd testing | |
rustup target add wasm32-unknown-unknown | |
cargo test miner_test |