Skip to content

Commit

Permalink
cicd: Updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Mar 17, 2024
1 parent 4d05718 commit 803ca37
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@4
with:
java-version: 11
distribution: zulu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

- name: JReleaser release output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jreleaser-release
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
echo ${{ github.event.inputs.version }} > VERSION
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
path: out/jreleaser/assemble/riot-standalone/jlink

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}
Expand All @@ -82,7 +82,7 @@ jobs:
./gradlew -Prelease=true -PreproducibleBuild=true publish gitPublishPush -S
- name: Upload deploy artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 7
name: deploy
Expand All @@ -109,7 +109,7 @@ jobs:

- name: JReleaser release output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jreleaser-release
path: |
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/step-jlink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
ref: main

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}
Expand All @@ -38,18 +38,18 @@ jobs:
echo ${{ inputs.project-version }} > VERSION
- name: Build
run: ./gradlew -Prelease=true -PreproducibleBuild=true build aggregateTestReports aggregateJacocoReport -S
run: ./gradlew -Prelease=true -PreproducibleBuild=true build aggregateTestReports aggregateJacocoReport :guide:createGuide -S

- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-reports
path: |
build/reports/aggregate-tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

- name: Jlink
uses: jreleaser/release-action@v2
Expand All @@ -62,7 +62,7 @@ jobs:

- name: JReleaser output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: riot-jlink
path: |
Expand All @@ -74,22 +74,23 @@ jobs:
ls -l plugins/riot/build/dependencies/flat
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: artifacts
path: |
plugins/riot/build/libs/
plugins/riot/build/dependencies/
plugins/riot/build/distributions/
docs/guide/build/guide/
plugins/LICENSE
- name: Stop Gradle daemon
shell: bash
run: ./gradlew -stop

- name: Upload jlink
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: jlink
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trigger-early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}
Expand Down

0 comments on commit 803ca37

Please sign in to comment.