generated from actions/container-action
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
71 lines (71 loc) · 2.33 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'Docker-Coq Action'
branding:
icon: 'check-circle'
color: 'gray-dark'
description: 'GitHub Action using Docker-Coq'
author: 'Erik Martin-Dorel'
inputs:
opam_file:
description: 'The path of the .opam file (or a directory), relative to the repo root.'
default: '.'
coq_version:
description: '"8.X", "latest", "dev", "8.X-native", "latest-native", or "dev-native"'
default: 'latest'
ocaml_version:
description: '"default", "4.02", "4.05", or "4.XX-flambda", see https://github.com/coq-community/docker-coq/wiki#ocaml-versions-policy'
default: 'default'
before_install:
description: 'Customizable script run before "install".'
default: |
startGroup "Print opam config"
opam config list; opam repo list; opam list
endGroup
install:
description: 'Customizable script to install the opam dependencies.'
default: |
startGroup "Install dependencies"
sudo apt-get update -y -q
opam pin add -n -y -k path $PACKAGE $WORKDIR
opam update -y
opam install --confirm-level=unsafe-yes -j 2 $PACKAGE --deps-only
endGroup
after_install:
description: 'Customizable script run after "install".'
default: |
startGroup "List installed packages"
opam list
endGroup
before_script:
description: 'Customizable script run before the opam build, empty by default.'
script:
description: 'Customizable script run to install the opam package(s).'
default: |
startGroup "Build"
opam install -y -v -j 2 $PACKAGE
opam list
endGroup
after_script:
description: 'Customizable script run after the opam build, empty by default.'
uninstall:
description: 'Customizable script run to uninstall the opam package(s).'
default: |
startGroup "Uninstallation test"
opam remove -y $PACKAGE
endGroup
custom_script:
description: 'The main script run in the container; may be overridden.'
default: |
{{before_install}}
{{install}}
{{after_install}}
{{before_script}}
{{script}}
{{after_script}}
{{uninstall}}
custom_image:
description: 'The name of the Docker image to pull; unset by default.'
export:
description: 'Space-separated list of env variables to export to the custom_script.'
runs:
using: 'docker'
image: 'Dockerfile'