Merge branch '2025-01-07-mock-rpc-test' into 2025-01-07-update-erc #138
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: 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 |