Skip to content

Commit

Permalink
Update github actions to latest versions (#843)
Browse files Browse the repository at this point in the history
Motivation:

We should keep our actions up to date.

Modifications:

Upgrade all github actions to latest releases

Result:

Housekeeping
  • Loading branch information
normanmaurer authored Feb 16, 2024
1 parent 04788db commit baf2c74
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 48 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4

# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Checking for test failures
run: ./.github/scripts/check_build_result.sh build.output

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: build-${{ matrix.setup }}-target
Expand All @@ -70,13 +70,13 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3.1
uses: microsoft/setup-msbuild@v2

- name: Configuring Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -89,7 +89,7 @@ jobs:
args: install ninja nasm

# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -100,7 +100,7 @@ jobs:
- name: Build netty-tcnative-boringssl-static
run: ./mvnw.cmd --file pom.xml -am -pl boringssl-static clean package

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: build-windows-target
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v4

# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -56,7 +56,7 @@ jobs:
run: docker-compose ${{ matrix.docker-compose-run }}

- name: Upload local staging directory
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.setup }}-local-staging
path: ~/local-staging
Expand All @@ -73,13 +73,13 @@ jobs:
run: mkdir local-staging

- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3.1
uses: microsoft/setup-msbuild@v2

- name: Configuring Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -92,7 +92,7 @@ jobs:
args: install ninja nasm

# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -104,7 +104,7 @@ jobs:
run: ./mvnw.cmd --file pom.xml -am -pl boringssl-static clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=local-staging -DskipRemoteStaging=true -DskipTests=true

- name: Upload local staging directory
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-x86_64-local-staging
path: boringssl-static/local-staging
Expand All @@ -118,7 +118,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
Expand All @@ -131,25 +131,25 @@ jobs:
# Hardcode the staging artifacts that need to be downloaded.
# These must match the matrix setups and windows build. There is currently no way to pull this out of the config.
- name: Download windows_x86_64 staging directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: windows-x86_64-local-staging
path: ~/windows-x86_64-local-staging

- name: Download centos7-aarch64 staging directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: centos7-aarch64-local-staging
path: ~/centos7-aarch64-local-staging

- name: Download debian7-x86_64 staging directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: debian7-x86_64-local-staging
path: ~/debian7-x86_64-local-staging

- name: Download centos6-x86_64 staging directory
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: centos6-x86_64-local-staging
path: ~/centos6-x86_64-local-staging
Expand All @@ -167,7 +167,7 @@ jobs:
cp -r ~/centos6-x86_64-local-staging/deferred/* ~/local-staging/deferred/
# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -176,7 +176,7 @@ jobs:
deploy-stage-snapshot-m2-repository-cache-
- uses: s4u/maven-settings-action@v2.8.0
- uses: s4u/maven-settings-action@v3.0.0
with:
servers: |
[{
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v4

# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Checking for test failures
run: ./.github/scripts/check_build_result.sh build.output

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: build-pr-${{ matrix.setup }}-target
Expand All @@ -66,13 +66,13 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3.1
uses: microsoft/setup-msbuild@v2

- name: Configuring Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -85,7 +85,7 @@ jobs:
args: install ninja nasm

# Cache .m2/repository
- uses: actions/cache@v3
- uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Build netty-tcnative-boringssl-static
run: ./mvnw.cmd --file pom.xml -am -pl boringssl-static clean package

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: build-pr-windows-target
Expand Down
Loading

0 comments on commit baf2c74

Please sign in to comment.