Skip to content

Commit

Permalink
Update GH Actions to x@v4, use actions/cache save-always
Browse files Browse the repository at this point in the history
GitHub Actions is deprecating node.js 16, so the actions needs an
update. Also, the 'save-always' flag in actions/cache allows storing
the cache content, even if the build job failed. That should speed up
building when live-fixing CI issues.
  • Loading branch information
reneme committed Feb 26, 2024
1 parent 314bc2b commit 5b197d3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/actions/setup-build-agent/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ runs:
run: print("::warning ::No compiler cache available, build times might suffer")
shell: python
if: env.COMPILER_CACHE_LOCATION == '' && inputs.cache-key != ''
- uses: actions/cache@v3
- uses: actions/cache@v4
if: env.COMPILER_CACHE_LOCATION != '' && inputs.cache-key != ''
with:
path: ${{ env.COMPILER_CACHE_LOCATION }}
key: ${{ inputs.cache-key }}-${{ github.run_id }}
restore-keys: ${{ inputs.cache-key }}
save-always: true

- name: Setup Visual Studio Environment
uses: egor-tensin/vs-shell@v2
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
runs-on: ${{ matrix.host_os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand All @@ -103,7 +103,7 @@ jobs:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand All @@ -118,7 +118,7 @@ jobs:
name: "Clang Tidy"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand Down Expand Up @@ -177,12 +177,12 @@ jobs:
COVERALLS_REPO_TOKEN: pbLoTMBxC1DFvbws9WfrzVOvfEdEZTcCS

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: ./source

- name: Fetch BoringSSL fork for BoGo tests
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: randombit/boringssl
ref: rene/runner-20230705
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
runs-on: ${{ matrix.host_os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: ./source

Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:
ANDROID_NDK: android-ndk-r26

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fuzz-seconds: 180
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand All @@ -68,7 +68,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand All @@ -86,7 +86,7 @@ jobs:

steps:
- name: Fetch Botan Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Build Agent
uses: ./.github/actions/setup-build-agent
Expand All @@ -101,7 +101,7 @@ jobs:
--test-target server
--parallel $(nproc)
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: tls-anvil-server-test-results
path: |
Expand Down

0 comments on commit 5b197d3

Please sign in to comment.