Merge branch 'main' into 2024-10-23-order-quotes-wasm-bindings #3160
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] | |
concurrency: | |
group: ${{ github.ref }}-rainix | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
standard-tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
task: [ob-rs-test, rainix-rs-artifacts] | |
include: | |
# Solidity doesn't need to be tested on multiple platforms | |
- os: ubuntu-latest | |
task: rainix-sol-test | |
- os: ubuntu-latest | |
task: rainix-sol-static | |
- os: ubuntu-latest | |
task: rainix-sol-artifacts | |
# We don't need to do rust static analysis on multiple platforms | |
- os: ubuntu-latest | |
task: rainix-rs-static | |
# Wasm target doesnt need to run on multiple platforms | |
- os: ubuntu-latest | |
task: rainix-wasm-artifacts | |
- os: ubuntu-latest | |
task: rainix-wasm-test | |
# Testing JS/TS bindings doesnt need to run on multiple platforms | |
- os: ubuntu-latest | |
task: test-js-bindings | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
env: | |
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }} | |
DEPLOY_METABOARD_ADDRESS: ${{ vars.CI_DEPLOY_SEPOLIA_METABOARD_ADDRESS }} | |
CI_FORK_SEPOLIA_BLOCK_NUMBER: ${{ vars.CI_FORK_SEPOLIA_BLOCK_NUMBER }} | |
CI_FORK_SEPOLIA_DEPLOYER_ADDRESS: ${{ vars.CI_FORK_SEPOLIA_DEPLOYER_ADDRESS }} | |
CI_DEPLOY_SEPOLIA_RPC_URL: ${{ secrets.CI_DEPLOY_SEPOLIA_RPC_URL || vars.CI_DEPLOY_SEPOLIA_RPC_URL }} | |
CI_SEPOLIA_METABOARD_URL: ${{ vars.CI_SEPOLIA_METABOARD_URL }} | |
CI_DEPLOY_POLYGON_RPC_URL: ${{ secrets.CI_DEPLOY_POLYGON_RPC_URL }} | |
RPC_URL_ETHEREUM_FORK: ${{ secrets.RPC_URL_ETHEREUM_FORK }} | |
CI_DEPLOY_FLARE_RPC_URL: ${{ secrets.CI_DEPLOY_FLARE_RPC_URL }} | |
COMMIT_SHA: ${{ github.sha }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
# https://github.com/actions/runner-images/issues/2840#issuecomment-2272410832 | |
- run: | | |
sudo rm -rf \ | |
"$AGENT_TOOLSDIRECTORY" \ | |
/opt/google/chrome \ | |
/opt/microsoft/msedge \ | |
/opt/microsoft/powershell \ | |
/opt/pipx \ | |
/usr/lib/mono \ | |
/usr/local/julia* \ | |
/usr/local/lib/android \ | |
/usr/local/lib/node_modules \ | |
/usr/local/share/chromium \ | |
/usr/local/share/powershell \ | |
/usr/share/dotnet \ | |
/usr/share/swift | |
df -h | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- run: ./pointers.sh | |
- name: Run ${{ matrix.task }} | |
env: | |
ETH_RPC_URL: ${{ secrets.CI_DEPLOY_SEPOLIA_RPC_URL || vars.CI_DEPLOY_SEPOLIA_RPC_URL }} | |
ETHERSCAN_API_KEY: ${{ secrets.EXPLORER_VERIFICATION_KEY }} | |
DEPLOY_VERIFIER: "" | |
run: nix develop -c ${{ matrix.task }} |