Skip to content

Commit

Permalink
Bump actions for Node 20.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Aug 24, 2024
1 parent 3769f77 commit 5d8a5a8
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:

steps:
- name: Cache checkout
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
key: checkout-${{ github.sha }}

- name: Checkout
if: steps.cache-checkout.outputs.cache-hit != 'true'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
path: ${{ env.wc }}
Expand All @@ -49,7 +49,7 @@ jobs:

steps:
- name: Cache PCRE suite
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-pcre
with:
path: pcre-suite/${{ env.pcre2 }}
Expand All @@ -67,15 +67,15 @@ jobs:
chmod -R ug-w pcre-suite
- name: Cache converted PCRE tests
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-cvtpcre
with:
path: ${{ env.cvtpcre }}
key: cvtpcre-bmake-ubuntu-gcc-DEBUG-AUSAN-${{ github.sha }}-${{ env.pcre2 }}

- name: Fetch build
if: steps.cache-cvtpcre.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
Expand Down Expand Up @@ -155,14 +155,14 @@ jobs:

steps:
- name: Fetch checkout
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
key: checkout-${{ github.sha }}

- name: Cache build
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
Expand All @@ -185,7 +185,7 @@ jobs:
- name: Get number of CPU cores
if: steps.cache-build.outputs.cache-hit != 'true'
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Make
Expand Down Expand Up @@ -233,15 +233,15 @@ jobs:

steps:
- name: Fetch checkout
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
key: checkout-${{ github.sha }}

# An arbitary build.
- name: Fetch build
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
${{ matrix.cc }} --version
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Make
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:

steps:
- name: Fetch checkout
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
Expand All @@ -344,14 +344,14 @@ jobs:
${{ matrix.cc }} --version
- name: Fetch build
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
key: build-${{ matrix.make }}-${{ matrix.os }}-${{ matrix.cc }}-${{ matrix.debug }}-${{ matrix.san }}-${{ github.sha }}

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Test
Expand Down Expand Up @@ -381,7 +381,7 @@ jobs:

steps:
- name: Fetch checkout
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
Expand All @@ -403,7 +403,7 @@ jobs:
${{ matrix.cc }} --version
- name: Fetch build
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
Expand All @@ -418,7 +418,7 @@ jobs:
# still run fuzzing, just from empty, and do not save their seeds.
- name: Restore seeds (mode ${{ matrix.mode }})
if: github.repository == 'katef/libfsm'
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: cache-seeds
with:
path: ${{ env.seeds }}-${{ matrix.mode }}
Expand All @@ -429,7 +429,7 @@ jobs:
run: mkdir -p ${{ env.seeds }}-${{ matrix.mode }}

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Fuzz
Expand All @@ -455,15 +455,15 @@ jobs:
# the same seeds for a given bug.
# The explicit cache/restore and cache/save actions are just for that.
- name: Save seeds (mode ${{ matrix.mode }}-${{ matrix.debug }})
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: always()
with:
path: ${{ env.seeds }}-${{ matrix.mode }}
key: ${{ steps.cache-seeds.outputs.cache-primary-key }}

# nothing to do with the caching, I'm uploading the seeds so a developer can grab them to fuzz locally
- name: Upload seeds (mode ${{ matrix.mode }}-${{ matrix.debug }})
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: seeds-${{ matrix.mode }}-${{ matrix.debug }}
path: ${{ env.seeds }}-${{ matrix.mode }}
Expand Down Expand Up @@ -513,14 +513,14 @@ jobs:
go version
- name: Fetch build
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
key: build-${{ matrix.make }}-${{ matrix.os }}-${{ matrix.cc }}-${{ matrix.debug }}-${{ matrix.san }}-${{ github.sha }}

- name: Fetch converted PCRE tests
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-cvtpcre
with:
path: ${{ env.cvtpcre }}
Expand All @@ -539,7 +539,7 @@ jobs:

steps:
- name: Cache docs
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-docs
with:
path: ${{ env.build }}
Expand All @@ -554,15 +554,15 @@ jobs:
- name: Fetch checkout
if: steps.cache-docs.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
key: checkout-${{ github.sha }}

- name: Get number of CPU cores
if: steps.cache-docs.outputs.cache-hit != 'true'
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Test docs
Expand Down Expand Up @@ -594,7 +594,7 @@ jobs:

steps:
- name: Cache prefix
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-prefix
with:
path: ${{ env.prefix }}
Expand All @@ -608,31 +608,31 @@ jobs:
- name: Fetch checkout
if: steps.cache-prefix.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-checkout
with:
path: ${{ env.wc }}
key: checkout-${{ github.sha }}

- name: Fetch build
if: steps.cache-prefix.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-build
with:
path: ${{ env.build }}
key: build-${{ env.make }}-${{ env.os }}-${{ env.cc }}-${{ env.debug }}-${{ env.san }}-${{ github.sha }}

- name: Fetch docs
if: steps.cache-prefix.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-docs
with:
path: ${{ env.build }}
key: docs-${{ github.sha }}

- name: Get number of CPU cores
if: steps.cache-prefix.outputs.cache-hit != 'true'
uses: SimenB/github-actions-cpu-cores@v1
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Install
Expand Down Expand Up @@ -668,7 +668,7 @@ jobs:
fpm -v
- name: Fetch prefix
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-prefix
with:
path: ${{ env.prefix }}
Expand All @@ -691,7 +691,7 @@ jobs:
printf "package_file=%s\n" $(basename pkg/*) >> $GITHUB_ENV
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.package_file }}
path: pkg/${{ env.package_file }}
Expand Down

0 comments on commit 5d8a5a8

Please sign in to comment.