Skip to content

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Dec 30, 2023
1 parent addf3de commit 614307e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
- push

jobs:
test:
name: Run tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check
- name: Check database schema
run: make check-db-schema
- name: Check Clippy
run: cargo clippy --all -- -Dwarnings
- name: Run tests
run: cargo test --all
push:
if: github.ref == 'refs/heads/main' && github.repository == 'brioche-dev/brioche'
needs: test
name: Push artifacts
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Brioche
run: cargo build --release
- name: Build brioche-pack
run: |
cargo +nightly build \
-p brioche-pack \
--profile=release-tiny \
--target=x86_64-unknown-linux-musl \
-Z 'build-std=std,panic_abort' \
-Z 'build-std-features=panic_immediate_abort'

0 comments on commit 614307e

Please sign in to comment.