From d0dbc6f7ff025edf5adf7c7279d3ad4784d730c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delorme?= Date: Sun, 11 Feb 2024 13:54:38 +0100 Subject: [PATCH 1/5] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8a10ea..fbc5c13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ ## see gitea action here for referecnces: https://gitea.com/actions name: Gitea Actions Java Build -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: @@ -38,4 +38,4 @@ jobs: # - uses: actions/upload-artifact@v3 # with: # name: Karma -# path: target/Karma-*.jar \ No newline at end of file +# path: target/Karma-*.jar From 75bc95325e1e731ecae2939a5c11da001a65c08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delorme?= Date: Sun, 11 Feb 2024 13:57:09 +0100 Subject: [PATCH 2/5] fix build.yml for github --- .github/workflows/build.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbc5c13..94e0a72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,4 @@ -## see gitea action here for referecnces: https://gitea.com/actions -name: Gitea Actions Java Build -run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 +name: Github Actions Java Build on: [push] jobs: @@ -28,12 +26,12 @@ jobs: #/root/.sdkman/candidates/maven/current/mvn -B package -DskipTests=true --file pom.xml chmod +x ./build.sh ./build.sh a - - uses: https://gitea.com/actions/release-action@main - with: - files: |- - target/*.jar - target/buid/*.run - api_key: "${{secrets.RELEASE_TOKEN}}" +# - uses: https://gitea.com/actions/release-action@main +# with: +# files: |- +# target/*.jar +# target/buid/*.run +# api_key: "${{secrets.RELEASE_TOKEN}}" # use of upload artifacts : https://github.com/actions/upload-artifact # - uses: actions/upload-artifact@v3 # with: From f80c61031f965f60924b55ac28aecca29f9025b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delorme?= Date: Sun, 11 Feb 2024 13:58:44 +0100 Subject: [PATCH 3/5] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94e0a72..7898ce9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ jobs: Build-Karma-Project: runs-on: ubuntu-latest steps: - - uses: https://github.com/actions/checkout@v3 + - uses: https://github.com/actions/checkout@v4.1.1 # - uses: https://github.com/actions/setup-java@v3 # with: # distribution: "zulu" # See 'Supported distributions' for available options From a4c8f7f1600f24d02726b5037d102a6a78aed13f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delorme?= Date: Sun, 11 Feb 2024 14:01:16 +0100 Subject: [PATCH 4/5] Update build.yml --- .github/workflows/build.yml | 55 +++++++++++++++---------------------- 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7898ce9..da0be6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,39 +1,28 @@ -name: Github Actions Java Build +name: Building the Java project with customscript +run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: - Build-Karma-Project: + Build-Java-Project: runs-on: ubuntu-latest steps: - - uses: https://github.com/actions/checkout@v4.1.1 -# - uses: https://github.com/actions/setup-java@v3 -# with: -# distribution: "zulu" # See 'Supported distributions' for available options -# java-version: "20" -# cache: 'maven' - - name: Build project with Maven and Xvfb + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: "zulu" # See 'Supported distributions' for available options + java-version: "21" + - name: Build project with custom script and Xvfb run: | - apt update -y - apt -y install xvfb curl zip unzip xsltproc - export DISPLAY=":99.0" - export AUDIODEV=null - xvfb-run :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - curl -s "https://get.sdkman.io" | bash - source "/root/.sdkman/bin/sdkman-init.sh" - sdk env install - sdk env use - chmod a+x "$HOME/.sdkman/bin/sdkman-init.sh" - #/root/.sdkman/candidates/maven/current/mvn -B package -DskipTests=true --file pom.xml - chmod +x ./build.sh - ./build.sh a -# - uses: https://gitea.com/actions/release-action@main -# with: -# files: |- -# target/*.jar -# target/buid/*.run -# api_key: "${{secrets.RELEASE_TOKEN}}" -# use of upload artifacts : https://github.com/actions/upload-artifact -# - uses: actions/upload-artifact@v3 -# with: -# name: Karma -# path: target/Karma-*.jar + apt update -y + apt -y install xvfb curl zip unzip xsltproc + export DISPLAY=":99.0" + export AUDIODEV=null + xvfb-run :99 -screen 0 1024x768x24 > /dev/null 2>&1 & + curl -s "https://get.sdkman.io" | bash + source "/root/.sdkman/bin/sdkman-init.sh" + sdk env install + sdk env use + chmod a+x "$HOME/.sdkman/bin/sdkman-init.sh" + #/root/.sdkman/candidates/maven/current/mvn -B package -DskipTests=true --file pom.xml + chmod +x ./build.sh + ./build.sh a From 1c2f2f0dee5e88a5c679fe765d53eba373152424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delorme?= Date: Sun, 11 Feb 2024 14:02:36 +0100 Subject: [PATCH 5/5] Update build.yml --- .github/workflows/build.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da0be6d..ed8a341 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,7 @@ jobs: Build-Java-Project: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: "zulu" # See 'Supported distributions' for available options - java-version: "21" + - uses: actions/checkout@v4.1.1 - name: Build project with custom script and Xvfb run: | apt update -y