Skip to content

Commit

Permalink
Fix Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobe91 committed Jan 7, 2025
1 parent 5ee1f14 commit e8a48c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,17 @@ jobs:
# When GitHub Actions supports it: https://github.com/actions/toolkit/issues/399
# We will use the experimental flag as indicator whether a failure should cause a workflow failure
include:
- jdk: 8
- jdk: 11
- jdk: 15
- jdk: 16
- jdk: 11
build-jdk: 11
- jdk: 15
build-jdk: 15
- jdk: 16
build-jdk: 16
- jdk: 17
build-jdk: 17
steps:
- uses: actions/checkout@v2
- name: Set up Java 8
uses: AdoptOpenJDK/install-jdk@v1
with:
version: 8
targets: JDK8_HOME;JAVA_HOME
- name: Download Requested JDK
uses: sormuras/[email protected]
id: jdk
if: ${{ matrix.jdk != 8 }}
with:
feature: ${{ matrix.jdk }}
- name: Set up Requested JDK
uses: actions/[email protected]
if: ${{ matrix.jdk != 8 }}
with:
java-version: ${{ matrix.jdk }}
jdkFile: ${{ env.JDK_FILE }}
Expand All @@ -60,18 +45,17 @@ jobs:

- name: Run build script
env:
JDK8_HOME: ${{ env.JDK8_HOME }}
JDK: ${{ matrix.jdk }}
BUILD_JDK: ${{ matrix.build-jdk }}
run: ./ci/build-github.sh
shell: bash

- name: Upload test reports (if Maven failed)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.jdk }}-build-jdk${{ matrix.build-jdk }}
path: './**/*-reports/'

- name: Omit produced artifacts from build cache
run: ./ci/before-cache.sh
run: ./ci/before-cache.sh
2 changes: 1 addition & 1 deletion ci/deploy-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

echo "Starting snapshot deployment..."
export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
exec $DIR/../mvnw -B -P "blazebit-release" -s $DIR/deploy-settings.xml -DperformRelease -DskipTests -DskipNpmDeploy -Dgpg.skip=true -Dquiet=true -Djdk8.home=$JDK8_HOME clean deploy
exec $DIR/../mvnw -B -P "blazebit-release" -s $DIR/deploy-settings.xml -DperformRelease -DskipTests -DskipNpmDeploy -Dgpg.skip=true -Dquiet=true clean deploy

0 comments on commit e8a48c3

Please sign in to comment.