Update actions/checkout digest to 11bd719 #191
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- ci | |
jobs: | |
build: | |
env: | |
# Emit backtraces on panics. | |
RUST_BACKTRACE: 1 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
build: [linux, linux-arm, macos] | |
include: | |
- build: linux | |
os: ubuntu-latest | |
rust: stable | |
target: x86_64-unknown-linux-musl | |
usecross: false | |
- build: linux-arm | |
os: ubuntu-latest | |
rust: stable | |
target: aarch64-unknown-linux-musl | |
usecross: true | |
- build: macos | |
os: macos-latest | |
rust: stable | |
target: x86_64-apple-darwin | |
usecross: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
- name: Build async-vfs | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: build | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs | |
- name: Build async-vfs-os with async-std runtime | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: build | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs-os --features runtime-async-std | |
- name: Build async-vfs-os with smol runtime | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: build | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs-os --features runtime-smol | |
- name: Build async-vfs-os with tokio runtime | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: build | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs-os --features runtime-tokio | |
- name: Run async-vfs-os tests with async-std runtime | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: test | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs-os --features runtime-async-std -- --test-threads=1 | |
- name: Run async-vfs-os tests with smol runtime | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: test | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs-os --features runtime-smol -- --test-threads=1 | |
- name: Run async-vfs-os tests with tokio runtime | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: ${{ matrix.usecross }} | |
command: test | |
args: --verbose --release --target ${{ matrix.target }} --package async-vfs-os --features runtime-tokio -- --test-threads=1 |