Files
quetzal/.gitea/workflows/build.yml
ciomek 7c9c5b8ab1
All checks were successful
build / build (push) Successful in 2m24s
Initial commit
2026-03-12 19:48:20 +01:00

38 lines
899 B
YAML

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v6
- name: cache gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: setup jdk
uses: actions/setup-java@v5
with:
java-version: 21
distribution: temurin
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build --no-daemon -x test
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: build/libs/