-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Leafwing-Studios/ci-checks
Add CI checks
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI | ||
|
||
on: | ||
# Run when a commit is made or PR is merged to the main branch. | ||
push: | ||
branches: [main] | ||
# Run when a PR is updated. | ||
pull_request: | ||
# Allow running manually. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
name: Test action | ||
strategy: | ||
# Do not cancel in-progress jobs if one fails. | ||
fail-fast: false | ||
matrix: | ||
# Test each of Github's hosted runners. | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Initialize Rust project | ||
run: cargo init --bin | ||
|
||
- name: Cache build files | ||
# This will call `action.yml`. | ||
uses: ./ | ||
|
||
- name: Build Rust project | ||
run: cargo build |