mcgivrer is testing out Gitea Actions 🚀 #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java build | |
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 | |
on: [push] | |
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" | |
- name: Build project with custom script and Xvfb | |
run: | | |
sudo apt-get install xvfb | |
export DISPLAY=":99.0" | |
export AUDIODEV=null | |
xvfb-run :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
chmod +x ./build.sh | |
./build.sh a |