2023-01-19 01:55:27 +00:00
|
|
|
name: CI
|
2023-01-19 01:47:14 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-19 16:03:29 +01:00
|
|
|
pull_request:
|
2023-05-19 16:04:47 +01:00
|
|
|
workflow_dispatch:
|
2023-01-19 01:47:14 +00:00
|
|
|
|
2023-09-11 19:16:43 +01:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
2023-01-19 01:47:14 +00:00
|
|
|
jobs:
|
|
|
|
|
2023-09-11 19:16:43 +01:00
|
|
|
fmt:
|
|
|
|
name: Check formatting
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-19 01:47:14 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-11 19:16:43 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-01-19 01:47:14 +00:00
|
|
|
|
|
|
|
- name: Install Rust
|
2023-02-23 20:05:25 +00:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2023-01-19 01:47:14 +00:00
|
|
|
with:
|
2023-09-11 19:16:43 +01:00
|
|
|
components: rustfmt
|
2023-01-19 01:47:14 +00:00
|
|
|
|
2023-09-25 20:30:07 +01:00
|
|
|
- name: Install Just
|
|
|
|
uses: extractions/setup-just@v1
|
|
|
|
|
2023-09-25 20:34:46 +01:00
|
|
|
- name: Install Tooling
|
|
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
|
2023-09-11 19:16:43 +01:00
|
|
|
- name: Check Formatting
|
2023-09-25 20:30:07 +01:00
|
|
|
run: just fmt-check
|
2023-01-19 01:47:14 +00:00
|
|
|
|
2023-09-25 22:30:26 +01:00
|
|
|
analyze:
|
2023-09-25 22:34:40 +01:00
|
|
|
needs: ["fmt"]
|
2023-09-25 22:30:26 +01:00
|
|
|
name: Analyze and lint Luau files
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install Just
|
|
|
|
uses: extractions/setup-just@v1
|
|
|
|
|
|
|
|
- name: Install Tooling
|
|
|
|
uses: ok-nick/setup-aftman@v0.4.2
|
|
|
|
|
|
|
|
- name: Analyze
|
|
|
|
run: just analyze
|
|
|
|
|
2023-09-11 19:16:43 +01:00
|
|
|
ci:
|
|
|
|
needs: ["fmt"]
|
|
|
|
strategy:
|
2023-09-11 20:26:31 +01:00
|
|
|
fail-fast: false
|
2023-09-11 19:16:43 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: Windows x86_64
|
|
|
|
runner-os: windows-latest
|
|
|
|
cargo-target: x86_64-pc-windows-msvc
|
|
|
|
|
|
|
|
- name: Linux x86_64
|
|
|
|
runner-os: ubuntu-latest
|
|
|
|
cargo-target: x86_64-unknown-linux-gnu
|
|
|
|
|
|
|
|
- name: macOS x86_64
|
2024-04-15 22:40:58 +01:00
|
|
|
runner-os: macos-13
|
2023-09-11 19:16:43 +01:00
|
|
|
cargo-target: x86_64-apple-darwin
|
2024-04-15 22:40:58 +01:00
|
|
|
|
|
|
|
- name: macOS aarch64
|
|
|
|
runner-os: macos-14
|
|
|
|
cargo-target: aarch64-apple-darwin
|
|
|
|
|
2023-09-11 19:16:43 +01:00
|
|
|
name: CI - ${{ matrix.name }}
|
|
|
|
runs-on: ${{ matrix.runner-os }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
with:
|
|
|
|
components: clippy
|
|
|
|
targets: ${{ matrix.cargo-target }}
|
|
|
|
|
2023-01-19 01:55:27 +00:00
|
|
|
- name: Build
|
2023-09-11 19:16:43 +01:00
|
|
|
run: |
|
|
|
|
cargo build \
|
|
|
|
--locked --all-features \
|
|
|
|
--target ${{ matrix.cargo-target }}
|
2023-01-19 01:55:27 +00:00
|
|
|
|
2023-09-11 19:16:43 +01:00
|
|
|
- name: Lint
|
2023-09-11 19:32:07 +01:00
|
|
|
run: |
|
|
|
|
cargo clippy \
|
|
|
|
--locked --all-features \
|
|
|
|
--target ${{ matrix.cargo-target }}
|
2023-01-19 01:55:27 +00:00
|
|
|
|
2023-06-28 11:11:06 +01:00
|
|
|
- name: Test
|
2023-09-11 19:32:07 +01:00
|
|
|
run: |
|
|
|
|
cargo test \
|
|
|
|
--locked --all-features \
|
|
|
|
--target ${{ matrix.cargo-target }}
|