Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mcgivrer/karma
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgivrer committed Feb 11, 2024
2 parents 98d14be + 1c2f2f0 commit 286d241
Showing 1 changed file with 18 additions and 35 deletions.
53 changes: 18 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,24 @@
## see gitea action here for referecnces: https://gitea.com/actions
name: Gitea Actions Java Build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
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@v3
# - 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@v4.1.1
- 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

0 comments on commit 286d241

Please sign in to comment.