Skip to content

Commit

Permalink
ci: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davvid committed Apr 4, 2024
1 parent cbe6239 commit d1845de
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: checks
on: [push, pull_request]

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
- name: Checkout
uses: actions/checkout@v4
- run: date +%W >weekly
- name: Cache
uses: actions/cache@v4
id: cache
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('weekly') }}
- name: Install garden
if: steps.cache.outputs.cache-hit != 'true'
run: |
rustup toolchain install stable --profile minimal --no-self-update
cargo install garden-tools
- name: Clone Ptex
run: garden grow ptex
- name: Build
run: garden -vv build all
- name: Check
run: garden -vv check

0 comments on commit d1845de

Please sign in to comment.