Skip to content

Commit

Permalink
Merge pull request #6081 from rjbou/gha2
Browse files Browse the repository at this point in the history
GHA: bump version of actions
  • Loading branch information
kit-ty-kate authored Aug 8, 2024
2 parents 600ac33 + a07027e commit 6ab6aad
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 73 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.ml
Original file line number Diff line number Diff line change
Expand Up @@ -170,20 +170,15 @@ let get_cache name = get_cache_cont name Fun.id

let cache ?cond ?(key_prefix="needs.Analyse") ?(check_only=false) name =
get_cache_cont name (fun cache ->
let action =
if cache.force_gzip || check_only then
"ocaml-opam/cache@opam"
else
"actions/cache@v3"
in
let action = "actions/cache@v4" in
let withs =
if cache.force_gzip then
[("force-gzip", Literal ["true"])]
[("enableCrossOsArchive", Literal ["true"])]
else
[] in
let withs =
if check_only then
("check-only", Literal ["true"]) :: withs
("lookup-only", Literal ["true"]) :: withs
else
withs in
let withs =
Expand Down Expand Up @@ -329,7 +324,7 @@ let main_build_job ~analyse_job ~cygwin_job ?section runner start_version ~oc ~w
~cond:(Predicate(true, EndsWith("matrix.host", "-pc-windows")))
~withs:[ ("name", Literal ["opam-exe-${{ matrix.host }}-${{ matrix.ocamlv }}-${{ matrix.build }}"]);
("path", Literal ["D:\\Local\\bin\\opam.exe"; "D:\\Local\\bin\\opam-installer.exe"; "D:\\Local\\bin\\opam-putenv.exe"]) ]
"actions/upload-artifact@v3")
"actions/upload-artifact@v4")
++ only_on Windows (run "Test (basic - Cygwin)" ~cond:(Predicate(true, EndsWith("matrix.host", "-pc-cygwin"))) ["bash -exu .github/scripts/main/test.sh"])
++ only_on Windows (run "Test (basic - native Windows)" ~env:[("OPAMROOT", {|D:\a\opam\opam\.opam|})] ~shell:"cmd" ~cond:(Predicate(false, EndsWith("matrix.host", "-pc-cygwin")))
({|set Path=D:\Cache\ocaml-local\bin;%Path%|} ::
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/depexts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- name: opam binary cache
id: binary
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -43,9 +43,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -61,9 +61,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -79,9 +79,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -97,9 +97,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -115,9 +115,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -133,9 +133,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -151,9 +151,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -169,9 +169,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand All @@ -187,9 +187,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: opam binary cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: binary/opam
key: binary-${{ env.OPAMVERSION }}
Expand Down
Loading

0 comments on commit 6ab6aad

Please sign in to comment.