Skip to content

Add Ubuntu badge

Add Ubuntu badge #108

name: Build on Debian
on:
push:
branches: [ main, stage ]
pull_request:
branches: [ main, stage ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/bailuk/java-gtk/gtk4-debian:latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Accept permission
run: git config --global --add safe.directory /__w/java-gtk/java-gtk
- name: Display tags
run: git tag
- name: Display version
run: ./gradlew cV
- name: Generate source code
run: ./gradlew generate
- name: Build library
run: ./gradlew build
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: java-gtk
path: java-gtk/build/libs/*
if-no-files-found: error