Skip to content

Commit

Permalink
Merge pull request #29 from Leafwing-Studios/ci-checks
Browse files Browse the repository at this point in the history
Add CI checks
  • Loading branch information
alice-i-cecile authored Aug 26, 2024
2 parents d8d3ade + e34aa8a commit 2a68760
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 2a68760

Please sign in to comment.