Skip to content

Commit

Permalink
Fix cold job
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Mar 26, 2023
1 parent e179ec0 commit ee6e3a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/main/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ -e "$OCAML_LOCAL/_build" ]; then
cp -a "$OCAML_LOCAL/_build" .
fi

./configure --prefix $CONFIGURE_PREFIX --with-mccs
./configure --prefix $CONFIGURE_PREFIX --with-mccs $CONFIGURE_ARGS
if [ "$OPAM_TEST" != "1" ]; then
echo 'DUNE_PROFILE=dev' >> Makefile.config
fi
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.ml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ let cold_job ~analyse_job ~build_linux_job ~build_windows_job ~build_macOS_job ?
++ only_on Linux (run "Install bubblewrap" ["sudo apt install bubblewrap"])
++ checkout ()
++ cache Archives
++ run "Cold" [
++ run "Cold" ~env:[("CONFIGURE_ARS", "--without-vendored-deps")] [
"make compiler";
"make lib-pkg";
"bash -exu .github/scripts/main/main.sh " ^ host]
Expand Down Expand Up @@ -475,6 +475,7 @@ let main oc : unit =
("CYGWIN_ROOT", "D:\\cygwin");
("CYGWIN", "winsymlinks:native");
("CYGWIN_EPOCH", "3");
("CONFIGURE_ARGS", "");
] in
let keys = [
("archives", "archives-1-${{ hashFiles('src_ext/Makefile.sources', 'src_ext/Makefile', '.github/scripts/common/preamble.sh', '.github/scripts/main/preamble.sh', '.github/scripts/main/archives-cache.sh') }}-${{ env.OPAM_REPO_SHA }}");
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ env:
CYGWIN_ROOT: D:\cygwin
CYGWIN: winsymlinks:native
CYGWIN_EPOCH: 3
CONFIGURE_ARGS:

defaults:
run:
Expand Down Expand Up @@ -388,6 +389,8 @@ jobs:
key: ${{ needs.Analyse.outputs.archives }}
force-gzip: true
- name: Cold
env:
CONFIGURE_ARGS: --without-vendored-deps
run: |
make compiler
make lib-pkg
Expand Down

0 comments on commit ee6e3a5

Please sign in to comment.