Relayer using signing rules as backend #833
Workflow file for this run
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: Tests | |
on: | |
pull_request: | |
branches: | |
- develop | |
workflow_dispatch: | |
env: | |
DEV_PACKAGES: build-essential musl musl-dev musl-tools pkg-config libssl-dev librust-openssl-sys-dev libc6 clang | |
ETH1_INFURA_API_KEY: ${{ secrets.ETH1_INFURA_API_KEY }} | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
jobs: | |
macos-check: | |
name: macOS Check | |
runs-on: macos-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-macos-latest-${{ matrix.target }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 50 | |
- name: Setup | Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: ${{ matrix.target }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "rust" | |
- name: Build Checking on ${{ matrix.target }} | |
run: cargo check --target=${{ matrix.target }} --features native-tls/vendored --locked | |
strategy: | |
fail-fast: true | |
matrix: | |
target: | |
- x86_64-apple-darwin | |
macos-unit-tests: | |
name: macOS Unit Tests | |
runs-on: macos-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-macos-unit-tests-${{ matrix.target }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 50 | |
- name: Setup | Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: ${{ matrix.target }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "rust" | |
- name: Testing on ${{ matrix.target }} | |
run: cargo test --target=${{ matrix.target }} --locked | |
strategy: | |
fail-fast: true | |
matrix: | |
target: | |
- x86_64-apple-darwin | |
linux-check: | |
name: Linux Check | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-linux-check-${{ matrix.target }} | |
cancel-in-progress: true | |
steps: | |
- name: install system build dependencies | |
run: sudo apt-get update && sudo apt-get install ${DEV_PACKAGES} | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 50 | |
- name: Setup | Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: ${{ matrix.target }} | |
- name: Install cross | |
run: cargo install cross --locked | |
- name: Build Checking on ${{ matrix.target }} using cross | |
run: cross check --target=${{ matrix.target }} --features native-tls/vendored --locked | |
strategy: | |
fail-fast: true | |
matrix: | |
target: | |
- aarch64-unknown-linux-musl | |
- x86_64-unknown-linux-musl | |
linux-unit-tests: | |
name: Linux Unit Tests | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-linux-unit-tests-${{ matrix.target }} | |
cancel-in-progress: true | |
steps: | |
- name: install system build dependencies | |
run: sudo apt-get update && sudo apt-get install ${DEV_PACKAGES} | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 50 | |
- name: Setup | Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
targets: ${{ matrix.target }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "rust" | |
- name: Create Env file | |
run: | | |
touch .env | |
echo ETH1_INFURA_API_KEY = ${{ secrets.ETH1_INFURA_API_KEY }} >> .env | |
- name: Testing on ${{ matrix.target }} | |
run: cargo test --target=${{ matrix.target }} --features native-tls/vendored --locked | |
strategy: | |
fail-fast: true | |
matrix: | |
target: | |
- x86_64-unknown-linux-gnu |