-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (32 loc) · 1.12 KB
/
rainix.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Rainix CI
on: [push]
jobs:
standard-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
task: [ci-rs-test, ci-rs-artifacts]
include:
# Solidity doesn't need to be tested on multiple platforms
- os: ubuntu-latest
task: ci-sol-test
- os: ubuntu-latest
task: ci-sol-static
- os: ubuntu-latest
task: ci-sol-artifacts
# We don't need to do rust static analysis on multiple platforms
- os: ubuntu-latest
task: ci-rs-static
runs-on: ${{ matrix.os }}
env:
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }}
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Run ${{ matrix.task }}
env:
CI_DEPLOY_RPC_URL: ${{ secrets.CI_DEPLOY_RPC_URL }}
EXPLORER_VERIFICATION_KEY: ${{ secrets.EXPLORER_VERIFICATION_KEY }}
run: nix run .#${{ matrix.task }}