2024-07-27 12:36:08 -04:00
|
|
|
name: Continuous Integration
|
2023-05-13 23:05:08 +01:00
|
|
|
|
2024-07-27 12:36:08 -04:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- "**"
|
|
|
|
- "!/*.md"
|
|
|
|
- "!/**.md"
|
2023-05-13 23:05:08 +01:00
|
|
|
|
2024-07-27 12:36:08 -04:00
|
|
|
concurrency:
|
|
|
|
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
|
|
|
|
cancel-in-progress: true
|
2023-05-15 02:57:21 +01:00
|
|
|
|
2023-05-13 23:05:08 +01:00
|
|
|
jobs:
|
2024-07-27 12:36:08 -04:00
|
|
|
integrity:
|
|
|
|
name: Integrity Checks on Rust ${{ matrix.toolchain }}
|
2023-05-13 23:05:08 +01:00
|
|
|
runs-on: ubuntu-latest
|
2024-07-27 12:36:08 -04:00
|
|
|
timeout-minutes: 15
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- stable
|
|
|
|
- nightly
|
|
|
|
|
2023-05-13 23:05:08 +01:00
|
|
|
steps:
|
2024-07-27 12:36:08 -04:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup Rust
|
2024-07-27 19:34:01 +02:00
|
|
|
uses: dtolnay/rust-toolchain@master
|
2023-05-13 23:05:08 +01:00
|
|
|
with:
|
2024-07-27 12:36:08 -04:00
|
|
|
toolchain: ${{ matrix.toolchain }}
|
|
|
|
targets: wasm32-unknown-unknown
|
|
|
|
components: clippy, rustfmt
|
|
|
|
|
|
|
|
- name: Setup Rust Cache
|
2023-05-13 23:05:08 +01:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2023-05-15 02:06:57 +01:00
|
|
|
|
2024-07-27 12:36:08 -04:00
|
|
|
- name: Build
|
|
|
|
run: cargo build
|
2023-05-15 02:06:57 +01:00
|
|
|
|
2024-07-27 12:36:08 -04:00
|
|
|
- name: Format
|
|
|
|
run: cargo fmt --check
|
2023-05-13 23:05:08 +01:00
|
|
|
|
2024-07-27 12:36:08 -04:00
|
|
|
- name: Clippy
|
|
|
|
run: cargo clippy -- -D warnings
|