Skip to content

refactor(drawer): Generalize draw_position from draw_initial_position #5

refactor(drawer): Generalize draw_position from draw_initial_position

refactor(drawer): Generalize draw_position from draw_initial_position #5

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build
strategy:
matrix:
job:
- { os: macos-latest, target: x86_64-apple-darwin, use-cross: false }
- { os: windows-latest, target: x86_64-pc-windows-msvc, use-cross: false }
- { os: ubuntu-latest , target: x86_64-unknown-linux-gnu, use-cross: false }
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl, use-cross: true }
- { os: ubuntu-latest, target: arm-unknown-linux-gnueabihf, use-cross: true }
- { os: ubuntu-latest, target: aarch64-unknown-linux-gnu, use-cross: true }
runs-on: ${{ matrix.job.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.job.target }}
components: clippy, rustfmt
- name: Build target
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
target: ${{ matrix.job.target }}
args: "--locked --release --bin c2g"
strip: true
- name: Format
run: cargo fmt --all -- --check
- name: Test
run: cargo test