mirror of
https://github.com/gay-pizza/jaarg.git
synced 2025-12-18 15:00:17 +00:00
32 lines
648 B
YAML
32 lines
648 B
YAML
name: Build & test
|
|
|
|
on:
|
|
push:
|
|
paths: [ ".github/workflows/**", "**/*.rs", "**/Cargo.toml", "**/.cargo/config.toml" ]
|
|
pull_request:
|
|
paths: [ "**/*.rs", "**/Cargo.toml", "**/.cargo/config.toml" ]
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_PROFILE: release-debuginfo
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- macos-latest
|
|
- ubuntu-latest
|
|
|
|
runs-on: ${{matrix.os}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build
|
|
run: cargo build --verbose --profile ${{env.CARGO_PROFILE}}
|
|
|
|
- name: Run tests
|
|
run: cargo test --verbose --profile ${{env.CARGO_PROFILE}}
|