Skip to content

Commit 79d0471

Browse files
committed
Attempt to clean up MacOS CI yml a bit
1 parent cff8b9c commit 79d0471

File tree

1 file changed

+13
-41
lines changed

1 file changed

+13
-41
lines changed

.github/workflows/coq-macos.yml

+13-41
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
COQ_VERSION: "8.18.0" # pick a version not tested on other platforms
2626
COQCHKEXTRAFLAGS: ""
2727
SKIP_BEDROCK2: "0"
28+
OPAMYES: "true"
29+
OPAMCONFIRMLEVEL: "unsafe-yes"
2830

2931
name: macos
3032

@@ -38,56 +40,32 @@ jobs:
3840
ocaml-compiler: 4.11.1
3941

4042
- name: Install system dependencies
41-
run: |
42-
set -e
43-
brew install gnu-time gnu-sed coreutils
43+
run: brew install gnu-time gnu-sed coreutils
4444

4545
- name: Install Coq
4646
run: |
4747
set -e
48-
eval $(opam env)
4948
opam update
5049
opam pin add coq ${COQ_VERSION}
5150
env:
5251
OPAMYES: "true"
5352
OPAMCONFIRMLEVEL: "unsafe-yes"
5453

5554
- name: Install js_of_ocaml
56-
run: |
57-
set -e
58-
eval $(opam env)
59-
opam install js_of_ocaml
60-
env:
61-
OPAMYES: "true"
62-
OPAMCONFIRMLEVEL: "unsafe-yes"
55+
run: opam install js_of_ocaml
6356

6457
- name: echo build params
65-
run: |
66-
eval $(opam env)
67-
etc/ci/describe-system-config-macos.sh
58+
run: etc/ci/describe-system-config-macos.sh
6859
- name: deps
69-
run: |
70-
eval $(opam env)
71-
etc/ci/github-actions-make.sh -j2 deps
60+
run: opam exec -- etc/ci/github-actions-make.sh -j2 deps
7261
- name: all
73-
run: |
74-
eval $(opam env)
75-
etc/ci/github-actions-make.sh -j2 all
76-
62+
run: opam exec -- etc/ci/github-actions-make.sh -j2 all
7763
- name: install-standalone-unified-ocaml
78-
run: |
79-
eval $(opam env)
80-
etc/ci/github-actions-make.sh install-standalone-unified-ocaml BINDIR=dist
81-
64+
run: opam exec -- etc/ci/github-actions-make.sh install-standalone-unified-ocaml BINDIR=dist
8265
- name: install-standalone-js-of-ocaml
83-
run: |
84-
eval $(opam env)
85-
etc/ci/github-actions-make.sh install-standalone-js-of-ocaml
86-
66+
run: opam exec -- etc/ci/github-actions-make.sh install-standalone-js-of-ocaml
8767
- name: only-test-amd64-files-lite
88-
run: |
89-
eval $(opam env)
90-
etc/ci/github-actions-make.sh -j2 only-test-amd64-files-lite SLOWEST_FIRST=1
68+
run: opam exec -- etc/ci/github-actions-make.sh -j2 only-test-amd64-files-lite SLOWEST_FIRST=1
9169

9270
- name: upload OCaml files
9371
uses: actions/upload-artifact@v3
@@ -110,17 +88,11 @@ jobs:
11088
name: standalone-html-macos
11189
path: fiat-html
11290
- name: install
113-
run: |
114-
eval $(opam env)
115-
etc/ci/github-actions-make.sh EXTERNAL_DEPENDENCIES=1 SKIP_COQSCRIPTS_INCLUDE=1 install install-standalone-ocaml
91+
run: opam exec -- etc/ci/github-actions-make.sh EXTERNAL_DEPENDENCIES=1 SKIP_COQSCRIPTS_INCLUDE=1 install install-standalone-ocaml
11692
- name: install-without-bedrock2
117-
run: |
118-
eval $(opam env)
119-
etc/ci/github-actions-make.sh EXTERNAL_DEPENDENCIES=1 SKIP_BEDROCK2=1 install-without-bedrock2 install-standalone-ocaml
93+
run: opam exec -- etc/ci/github-actions-make.sh EXTERNAL_DEPENDENCIES=1 SKIP_BEDROCK2=1 install-without-bedrock2 install-standalone-ocaml
12094
- name: install-dev
121-
run: |
122-
eval $(opam env)
123-
etc/ci/github-actions-make.sh EXTERNAL_REWRITER=1 EXTERNAL_COQPRIME=1 install install-standalone-ocaml
95+
run: opam exec -- etc/ci/github-actions-make.sh EXTERNAL_REWRITER=1 EXTERNAL_COQPRIME=1 install install-standalone-ocaml
12496
- name: display timing info
12597
run: cat time-of-build-pretty.log
12698
- name: display per-line timing info

0 commit comments

Comments
 (0)