This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
Change JenkinsNumber to mohist_api #47
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: Test and build mohist 1.7.10 | |
on: | |
push: | |
branches: [ 1.7.10 ] | |
pull_request: | |
branches: [ 1.7.10 ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: 'temurin' | |
- name: Setup mohist 1.7.10 | |
run: | | |
chmod +x ./gradlew | |
./gradlew cleanCache clean setupCrucible --refresh-dependencies | |
- name: Build mohist 1.7.10 | |
run: | | |
chmod +x ./gradlew | |
./gradlew buildPackages | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Mohist-1.7.10-46-server | |
path: build/distributions/* |