Skip to content

Commit b708260

Browse files
committed
CI: only for PR & main
This allows to remove the job duplicates detection script that has its own odities and was badly working with automatic merges. If ones want to have the CI running on its develoment branch, that person should create a draft PR.
1 parent 888de97 commit b708260

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
name: EasyCrypt compilation & check
22

3-
on: [push,pull_request,merge_group]
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
48

59
env:
610
HOME: /home/charlie
711
OPAMYES: true
812
OPAMJOBS: 2
913

1014
jobs:
11-
pre_job:
12-
name: Check for Duplicates Jobs
13-
runs-on: ubuntu-20.04
14-
outputs:
15-
should_skip: ${{ steps.skip_check.outputs.should_skip }}
16-
steps:
17-
- uses: fkirc/skip-duplicate-actions@v5
18-
id: skip_check
19-
with:
20-
concurrent_skipping: 'same_content_newer'
21-
skip_after_successful_duplicate: 'false'
22-
2315
compile-opam:
2416
name: EasyCrypt compilation (opam)
25-
needs: pre_job
26-
if: needs.pre_job.outputs.should_skip != 'true'
2717
runs-on: ubuntu-20.04
2818
container:
2919
image: ghcr.io/easycrypt/ec-build-box
@@ -38,8 +28,6 @@ jobs:
3828

3929
compile-nix:
4030
name: EasyCrypt compilation (nix)
41-
needs: pre_job
42-
if: needs.pre_job.outputs.should_skip != 'true'
4331
env:
4432
HOME: /home/runner
4533
runs-on: ubuntu-20.04
@@ -60,8 +48,7 @@ jobs:
6048
6149
check:
6250
name: Check EasyCrypt Libraries
63-
needs: [pre_job, compile-opam]
64-
if: needs.pre_job.outputs.should_skip != 'true'
51+
needs: compile-opam
6552
runs-on: ubuntu-20.04
6653
container:
6754
image: ghcr.io/easycrypt/ec-build-box
@@ -95,7 +82,6 @@ jobs:
9582

9683
fetch-external-matrix:
9784
name: Fetch EasyCrypt External Projects Matrix
98-
needs: [pre_job]
9985
runs-on: ubuntu-20.04
10086
outputs:
10187
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -110,8 +96,7 @@ jobs:
11096
11197
external:
11298
name: Check EasyCrypt External Projects
113-
needs: [pre_job, compile-opam, fetch-external-matrix]
114-
if: needs.pre_job.outputs.should_skip != 'true'
99+
needs: [compile-opam, fetch-external-matrix]
115100
runs-on: ubuntu-20.04
116101
container:
117102
image: ghcr.io/easycrypt/ec-build-box

0 commit comments

Comments
 (0)