Empty PR - Trigger CI test #6
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: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
api-tests: | |
name: "Compilation Tests" | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1.21.7-bullseye | |
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: | | |
rm /bin/sh && ln -s /bin/bash /bin/sh | |
cat /etc/os-release | |
apt-get update | |
apt-get -y install hwloc jq pkg-config bzr ocl-icd-opencl-dev | |
apt install zsh -y | |
make install_solc_linux | |
yarn install | |
ls -1 /usr/lib/*/libhwloc.so.* | head -n 1 | xargs -n1 -I {} ln -s {} /usr/lib/libhwloc.so | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Build Contracts | |
run: make build | |
- name: Clean up disk space | |
run: | | |
apt-get clean | |
rm -rf /var/log/*.log | |
df -h | |
- name: Compilation | |
run: | | |
cd testing | |
rustup target add wasm32-unknown-unknown | |
cargo build |