Finer control over when checks are done

This commit is contained in:
Denis Merigoux 2022-02-03 16:12:04 +01:00
parent d5a84ae09f
commit 838177f974
No known key found for this signature in database
GPG Key ID: EE99DCFA365C3EE3
2 changed files with 33 additions and 17 deletions

View File

@ -7,12 +7,13 @@ name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
issue_comment:
types: [created, edited, deleted]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-nix-21-05:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '+build')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
@ -24,6 +25,7 @@ jobs:
- run: nix-shell --run "echo OK"
build-nix-unstable:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '+build')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
@ -34,18 +36,3 @@ jobs:
- run: nix-build release.nix
- run: nix-shell --run "echo OK"
run-make-all:
# The type of runner that the job will run on
runs-on: self-hosted
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
clean: false
- name: Make all
run: |
make pygments
./french_law/python/setup_env.sh
OCAMLRUNPARAM=b opam exec -- make all -B

29
.github/workflows/run-make-all.yml vendored Normal file
View File

@ -0,0 +1,29 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
branches: *
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run-make-all:
# The type of runner that the job will run on
runs-on: self-hosted
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
clean: false
- name: Make all
run: |
make pygments
./french_law/python/setup_env.sh
OCAMLRUNPARAM=b opam exec -- make all -B