Skip to content

gh-actions: update

gh-actions: update #29

Workflow file for this run

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-get -y install hwloc jq pkg-config bzr ocl-icd-opencl-dev
sudo apt install -y mesa-opencl-icd ocl-icd-opencl-dev ntpdate ubuntu-drivers-common gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget
sudo apt install zsh -y
make install_solc_linux
# yarn install
make install-opencl
sudo echo /usr/lib/aarch64-linux-gnu/libhwloc.so.15 | xargs -I {} sudo ln -s {} /usr/lib/libhwloc.so
sudo ln -s /usr/lib/aarch64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
echo "--> Finding libhwloc"
sudo find / -name "libhwloc*"
- 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: Checkout
uses: actions/checkout@v2
with:
submodules: "true"
- name: Run miner test
run: |
cd testing
rustup target add wasm32-unknown-unknown
cargo test miner_test