feat: add ci service

This commit is contained in:
Wzp-2008 2025-01-12 22:59:44 +08:00
parent e34ffb4d6f
commit baefb3c11d

28
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,28 @@
name: ci
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
java: [17]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew clean bootJar
- name: capture build artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/