diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pull_request.yml | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 279e16d..7196d4e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml | |||
@@ -1,35 +1,32 @@ | |||
1 | name: check | 1 | name: check |
2 | 2 | ||
3 | on: | 3 | on: [ pull_request, workflow_dispatch ] |
4 | pull_request: | ||
5 | branches: [ "main" ] | ||
6 | workflow_dispatch: | ||
7 | 4 | ||
8 | env: | 5 | env: |
9 | SCCACHE_GHA_ENABLED: "true" | 6 | SCCACHE_GHA_ENABLED: "true" |
10 | RUSTC_WRAPPER: "sccache" | 7 | RUSTC_WRAPPER: "sccache" |
11 | SQLX_OFFLINE: "true" | 8 | SQLX_OFFLINE: "true" |
12 | CARGO_TERM_COLOR: always | 9 | CARGO_TERM_COLOR: always |
13 | 10 | ||
14 | jobs: | 11 | jobs: |
15 | check: | 12 | check: |
16 | runs-on: ubuntu-latest | 13 | runs-on: ubuntu-latest |
17 | steps: | 14 | steps: |
18 | - name: Run sccache-cache | 15 | - name: Run sccache-cache |
19 | uses: mozilla-actions/[email protected] | 16 | uses: mozilla-actions/[email protected] |
20 | 17 | ||
21 | - uses: actions/checkout@v4 | 18 | - uses: actions/checkout@v4 |
22 | 19 | ||
23 | - run: cargo check | 20 | - run: cargo check |
24 | - run: cargo clippy | 21 | - run: cargo clippy |
25 | 22 | ||
26 | check-release: | 23 | check-release: |
27 | runs-on: ubuntu-latest | 24 | runs-on: ubuntu-latest |
28 | steps: | 25 | steps: |
29 | - name: Run sccache-cache | 26 | - name: Run sccache-cache |
30 | uses: mozilla-actions/[email protected] | 27 | uses: mozilla-actions/[email protected] |
31 | 28 | ||
32 | - uses: actions/checkout@v4 | 29 | - uses: actions/checkout@v4 |
33 | 30 | ||
34 | - run: cargo check --release | 31 | - run: cargo check --release |
35 | - run: cargo clippy --release \ No newline at end of file | 32 | - run: cargo clippy --release |