Add Ubuntu badge #107
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: Build on Fedora | |
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-fedora:latest | |
steps: | |
- name: Checkout repository | |
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 |