2023-10-31 22:40:09 +08:00
|
|
|
name: build
|
2023-10-31 23:41:44 +08:00
|
|
|
on:
|
2023-10-31 23:42:19 +08:00
|
|
|
pull_request: {}
|
|
|
|
push: {}
|
2023-10-31 23:41:44 +08:00
|
|
|
workflow_dispatch: {}
|
2023-10-31 22:40:09 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2025-01-21 05:45:47 +08:00
|
|
|
java: '17'
|
2023-10-31 22:40:09 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout repository
|
2025-01-21 05:39:28 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-10-31 22:40:09 +08:00
|
|
|
|
|
|
|
- name: setup jdk ${{ matrix.java }}
|
2025-01-21 05:39:28 +08:00
|
|
|
uses: actions/setup-java@v4
|
2023-10-31 22:40:09 +08:00
|
|
|
with:
|
2025-01-21 05:39:28 +08:00
|
|
|
distribution: 'liberica'
|
2023-10-31 22:40:09 +08:00
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
|
2025-01-21 05:39:28 +08:00
|
|
|
- uses: actions/cache@v4
|
2023-10-31 22:40:09 +08:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/loom-cache
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: make gradle wrapper executable
|
|
|
|
run: chmod +x ./gradlew
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: ./gradlew build
|
|
|
|
|
2025-01-21 05:39:28 +08:00
|
|
|
- name: Make release
|
|
|
|
uses: actions/gitea-release-action@v1
|
2023-10-31 22:40:09 +08:00
|
|
|
with:
|
2025-01-21 05:45:47 +08:00
|
|
|
name: Create Air Fabric 1.0-${{ gitea.run_id }} for 1.20.1
|
2025-01-21 05:39:28 +08:00
|
|
|
md5sum: true
|
|
|
|
sha256sum: true
|
|
|
|
files: |-
|
|
|
|
build/libs/**
|