Skip to content

add force-cross feature to rug dependency #2

add force-cross feature to rug dependency

add force-cross feature to rug dependency #2

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
toolchain: [stable]
target:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
- aarch64-apple-darwin
- x86_64-pc-windows-gnu
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
cargo-tool: cargo
- os: macos-13 # intel
target: x86_64-apple-darwin
cargo-tool: cargo
- os: macos-latest # aarch64
target: aarch64-apple-darwin
cargo-tool: cargo
- os: windows-latest
target: x86_64-pc-windows-gnu
cargo-tool: cargo
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- name: Run tests
uses: clechasseur/rs-cargo@v3
with:
working-directory: ./core
command: test
args: "--target ${{ matrix.target }}"
tool: ${{ matrix.cargo-tool }}
format:
name: format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Check formatting
working-directory: ./core
run: make fmt
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Run linter
working-directory: ./core
run: make lint
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Build
working-directory: ./core
run: make build