bebot/.gitea/workflows/ci.yaml
Brian J. Tarricone 7981006726
Some checks reported warnings
CI / janitorial (push) Has been cancelled
CI / test (macos-latest, stable) (push) Has been cancelled
CI / test (ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Has been cancelled
CI / test (windows-latest, stable) (push) Has been cancelled
Add gitea CI workflow
2023-09-19 21:23:40 -07:00

51 lines
1.3 KiB
YAML

name: CI
on:
- push
jobs:
janitorial:
name: janitorial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: https://github.com/actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
override: true
- uses: https://github.com/actions-rs/clippy-check@v1
with:
toolchain: stable
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
- uses: https://github.com/actions-rs/cargo@v1
with:
command: fmt
args: --check
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- stable
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: https://github.com/actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- uses: https://github.com/actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --release --target=${{ matrix.target }}