Skip to content

Commit 529a89d

Browse files
committed
CI: Do not run on pushes to main
All merges go through the merge queue, which already tested the identical commit on the merge group branch. The nix caches can only be refreshed from main, so a dedicated workflow keeps running there. Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>
1 parent 2bf5ab1 commit 529a89d

3 files changed

Lines changed: 22 additions & 18 deletions

File tree

.github/workflows/all.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ permissions:
66
contents: read
77
on:
88
workflow_dispatch:
9-
push:
10-
branches: ["main"]
119
pull_request:
1210
branches: ["main"]
1311
types: [ "opened", "synchronize" ]

.github/workflows/hol_light.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@ name: HOL-Light
55
permissions:
66
contents: read
77
on:
8-
push:
9-
branches: ["main"]
10-
paths:
11-
- '.github/workflows/hol_light.yml'
12-
- 'proofs/hol_light/common/**/*.ml'
13-
- 'proofs/hol_light/aarch64/Makefile'
14-
- 'proofs/hol_light/aarch64/**/*.S'
15-
- 'proofs/hol_light/aarch64/**/*.ml'
16-
- 'proofs/hol_light/common/**/*.ml'
17-
- 'proofs/hol_light/x86_64/Makefile'
18-
- 'proofs/hol_light/x86_64/**/*.S'
19-
- 'proofs/hol_light/x86_64/**/*.ml'
20-
- 'flake.nix'
21-
- 'flake.lock'
22-
- 'nix/hol_light/*'
23-
- 'nix/s2n_bignum/*'
248
pull_request:
259
branches: ["main"]
2610
paths:

.github/workflows/nix_cache.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) The mldsa-native project authors
2+
# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
3+
4+
# The nix caches are only refreshed from main, and CI does not run on
5+
# pushes to main as merges are already tested in the merge queue.
6+
7+
name: Nix cache
8+
permissions:
9+
contents: read
10+
on:
11+
push:
12+
branches: ["main"]
13+
14+
jobs:
15+
nix:
16+
name: Nix
17+
permissions:
18+
actions: 'write'
19+
contents: 'read'
20+
id-token: 'write'
21+
uses: ./.github/workflows/nix.yml
22+
secrets: inherit

0 commit comments

Comments
 (0)