Skip to content

workflow fixed

workflow fixed #7

Workflow file for this run

name: GraalVM build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '17' # See 'Options' for more details
distribution: 'graalvm' # See 'Supported distributions' for available options
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install native build dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install -y build-essential pkg-config \
libasound2-dev libavcodec-dev libavformat-dev libavutil-dev \
libfreetype6-dev libgl-dev libglib2.0-dev libgtk-3-dev \
libpango1.0-dev libx11-dev libxtst-dev
- name: Example step
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Build jar
run: ./gradlew victusBuild
- name: Zip installer folder
run: |
if [ -d "installer" ]; then
zip -r VictusHub.zip installer
else
echo "❌ installer klasörü bulunamadı!"
exit 1
fi
- name: Upload VictusHub.zip artifact
uses: actions/upload-artifact@v4
with:
name: VictusHub.zip
path: VictusHub.zip