chore: node build update to ensure backward compatibility #2
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: rust test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
# 32-bit (i686) | |
# i686-apple-darwin is Tier 3. | |
- build: linux-32-bit | |
os: ubuntu-latest | |
target: i686-unknown-linux-gnu | |
command: cross | |
- build: windows-32-bit | |
os: ubuntu-latest | |
target: i686-pc-windows-gnu | |
command: cross | |
# 64-bit (x86) | |
- build: linux-64-bit | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
command: cross | |
- build: macos-64-bit | |
os: macos-latest | |
target: x86_64-apple-darwin | |
command: cargo | |
- build: windows-64-bit | |
os: ubuntu-latest | |
target: x86_64-pc-windows-gnu | |
command: cross | |
# 64-bit (ARM) | |
# aarch64-pc-windows-gnullvm is Tier 3. | |
- build: macos-arm | |
os: macos-latest | |
target: aarch64-apple-darwin | |
command: cargo | |
- build: linux-arm | |
os: ubuntu-latest | |
target: aarch64-unknown-linux-gnu | |
command: cross | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Install packages (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
ci/ubuntu-install-packages | |
- run: cargo install cross --git https://github.com/cross-rs/cross | |
- run: sudo apt install cmake | |
- name: build docker-compose services for integration tests | |
run: docker-compose -f docker-compose.yml up -d | |
- uses: GuillaumeFalourd/wait-sleep-action@v1 | |
with: | |
time: '10' # for 10 seconds | |
- name: Check the docker-compose services running | |
run: docker ps -a | |
- name: Run tests | |
run: ${{ matrix.command }} test --target ${{ matrix.target }} |