Skip to content

Commit

Permalink
[ci] Use actions/cache@v4 (#9256)
Browse files Browse the repository at this point in the history
Summary:
The current version is deprecated and causes all CI jobs to fail: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

Pull Request resolved: #9256

Reviewed By: SamChou19815

Differential Revision: D69800853

fbshipit-source-id: e9315a59a2f022853253ee997e805a85134f7675
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Feb 18, 2025
1 parent facfef4 commit a22b330
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
run: .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
run: .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
run: arch --x86_64 .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
run: .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
run: .\scripts\windows\install_opam.ps1
shell: pwsh
- name: Cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
key: opam-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('flowtype.opam', 'flow_parser.opam', '.circleci/config.yml') }}
path: |
Expand Down Expand Up @@ -456,7 +456,7 @@ jobs:
run: .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -487,7 +487,7 @@ jobs:
run: .circleci/make_opam_cachebreaker.sh > .circleci/opamcachebreaker
shell: bash
- name: opam cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: |-
~/.opam
Expand Down Expand Up @@ -615,7 +615,7 @@ jobs:
path: dist
- run: chmod +x bin/linux/flow
- name: Node cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
key: v2-website-${{ github.ref_name }}-${{ hashFiles('website/yarn.lock') }}
path: website/node_modules
Expand Down

0 comments on commit a22b330

Please sign in to comment.