Skip to content

CI Build

CI Build #173

Workflow file for this run

name: CI Build
on:
push:
branches:
- '**'
paths:
- '**/*.rs'
- '**/src/*'
- '**/Cargo.*'
- '.github/workflows/build.yml'
pull_request:
branches:
- '**'
paths:
- '**/*.rs'
- '**/src/*'
- '**/Cargo.*'
- '.github/workflows/build.yml'
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
env:
RUSTFLAGS: '--deny warnings'
jobs:
build:
name: CI Build
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
TARGET:
- x86_64-unknown-linux-gnu
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Toolchain setup
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.TARGET }}
- name: Cross setup
run: cargo install cross
- name: Build
run: cross build
- name: Test
run: cross test --target=${{ matrix.TARGET }}