Skip to content

Commit

Permalink
Update numerous github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 13, 2024
1 parent 6234535 commit d0b818f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/buildNative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- if: startsWith(matrix.os,'ubuntu')
name: Log free memory
run: free -s 1 -h -c 3
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Check out last 15 commits
fetch-depth: 15

- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
Expand Down Expand Up @@ -83,14 +83,14 @@ jobs:
- name: "Upload linux artifact"
if: steps.changed-files-specific.outputs.any_changed == 'true' && startsWith(matrix.os,'ubuntu')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coreLinux
path: core/target/core

- name: "Upload windows artifact"
if: steps.changed-files-specific.outputs.any_changed == 'true' && startsWith(matrix.os,'windows')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coreWindows
path: core/target/core.exe
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
env:
githubReleasesUrl: https://api.github.com/repos/{{github.repository}}/releases
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: "Check out source"
- name: "Display structure of working directory"
run: ls .
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
name: "Download native artifacts"
with:
path: ~/artifacts
Expand All @@ -47,7 +47,7 @@ jobs:
chmod +x ./releases/linux-amd64-release/include/executables/nzbhydra2
mv ~/artifacts/coreWindows/* ./releases/windows-release/include/executables/
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
buildMockserver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: "Check out source"
with:
# Check out last 15 commits
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up JDK 17
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down Expand Up @@ -73,11 +73,11 @@ jobs:
nzbhydra.name: ${{ matrix.test.name }}
steps:
- run: echo Running test ${{ matrix.test.name }} with port ${{ matrix.test.port }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: "Check out source"

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down Expand Up @@ -137,21 +137,21 @@ jobs:
for d in ./**/*.log ; do (truncate --size=1M $d); done
- name: "Upload data folder artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: dataLinux
path: /tmp/hydra

- name: "Upload test logs artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.test.name }}-test-logs
path: tests/**/*.log

- name: "Upload docker logs artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.test.name }}-docker-logs
Expand Down Expand Up @@ -181,25 +181,25 @@ jobs:
nzbhydra.name: windows
steps:
- name: "Check out source"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Download windows artifact from current workflow"
id: "downloadArtifactThisBuild"
continue-on-error: true
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
name: coreWindows
path: ./

- name: "Check if core.exe was downloaded"
id: checkCoreExe
uses: andstor/file-existence-action@v1
uses: andstor/file-existence-action@v3
with:
files: core.exe

- name: "Download windows artifact from previous workflow if no native build was executed"
if: ${{steps.checkCoreExe.outputs.files_exists == 'false'}}
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
name: coreWindows
#Search for matching artifact in any of the last completed workflows
Expand All @@ -208,7 +208,7 @@ jobs:
path: .

- name: "Set up JDK 17"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down Expand Up @@ -254,22 +254,22 @@ jobs:
url: "http://127.0.0.1:5080/actuator/shutdown"

- name: "Upload data folder artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
continue-on-error: true
with:
name: dataWindows
path: data

- name: "Upload test logs artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: windows-test-logs
path: tests/**/*.log

- name: "Upload docker logs artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: windows-docker-logs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down

0 comments on commit d0b818f

Please sign in to comment.