Skip to content

build.rs

build.rs #132

Workflow file for this run

name: Rainix CI
on: [push]
jobs:
standard-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
task: [rainix-rs-test, rainix-rs-artifacts]
include:
# We don't need to do rust static analysis on multiple platforms
- os: ubuntu-latest
task: rainix-rs-static
fail-fast: false
runs-on: ${{ matrix.os }}
env:
TEST_POLYGON_RPC: ${{ secrets.CI_DEPLOY_POLYGON_RPC_URL }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix develop -c rainix-rs-prelude
- name: Run ${{ matrix.task }}
run: nix develop -c ${{ matrix.task }}
- name: Build for wasm target
run: nix develop -c cargo build --target wasm32-unknown-unknown