2024-05-16 06:52:22 +01:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["next"]
|
|
|
|
pull_request:
|
|
|
|
branches: ["main"]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: docker
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Format
|
2024-08-12 09:44:35 +01:00
|
|
|
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
2024-05-16 06:52:22 +01:00
|
|
|
with:
|
2024-08-12 09:44:35 +01:00
|
|
|
args: cargo hack fmt --feature-powerset --all -- --check
|
2024-05-16 06:52:22 +01:00
|
|
|
|
|
|
|
- name: Clippy
|
2024-08-12 09:44:35 +01:00
|
|
|
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
2024-05-16 06:52:22 +01:00
|
|
|
with:
|
2024-08-12 09:44:35 +01:00
|
|
|
args: cargo hack clippy --feature-powerset
|
2024-05-16 06:52:22 +01:00
|
|
|
|
|
|
|
- name: Build
|
2024-08-12 09:44:35 +01:00
|
|
|
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
2024-05-16 06:52:22 +01:00
|
|
|
with:
|
2024-08-12 09:44:35 +01:00
|
|
|
args: cargo hack build --feature-powerset
|
2024-05-16 06:52:22 +01:00
|
|
|
|
|
|
|
- name: Test
|
2024-08-12 09:44:35 +01:00
|
|
|
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
2024-05-16 06:52:22 +01:00
|
|
|
with:
|
2024-08-12 09:44:35 +01:00
|
|
|
args: cargo hack test --feature-powerset
|