Build on Ubuntu #67
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 Ubuntu | |
on: | |
push: | |
branches: | |
- '*' | |
- '!main' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Version | |
run: ./gradlew cV | |
- name: Generate source code | |
run: ./gradlew generate | |
- name: Install GTK-4 | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-4-1 | |
- name: Build library | |
run: ./gradlew build |