Skip to content

开源协议

开源协议 #3

Workflow file for this run

name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
java_version: [ 17 ]
runs-on: ubuntu-latest
name: Build (Java ${{ matrix.java_version }})
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: microsoft
- name: Prepare Gradle wrapper
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
- name: Upload artifacts
# if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/