Skip to content

Commit

Permalink
Merge pull request #33 from hermit-os/ci
Browse files Browse the repository at this point in the history
ci: rework triggers
  • Loading branch information
mkroening authored Mar 25, 2024
2 parents a8ee6bc + cdd07b3 commit 0124bed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: CI

on:
push:
branches:
- main
pull_request:
merge_group:

jobs:
fmt:
Expand Down Expand Up @@ -33,6 +36,8 @@ jobs:
toolchain: nightly-2023-11-01
components: llvm-tools
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Build
run: make
- name: Run
Expand Down Expand Up @@ -62,6 +67,8 @@ jobs:
toolchain: nightly-2023-11-01
components: llvm-tools
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Build
run: cargo +nightly-2023-11-01 rustc -- -Zinstrument-mcount -C passes="ee-instrument<post-inline>"
- name: Run
Expand Down

0 comments on commit 0124bed

Please sign in to comment.