ci: update workflows & remove MCBBS mirror #3
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: build | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Build with gradle | |
run: | | |
chmod +x gradlew | |
echo "Building..." | |
./gradlew build | |
env: | |
BUILD_ID: ${{ github.run_number }} | |
BUILD_RELEASE: false | |
- name: Gather artifacts | |
run: | | |
mkdir gathered-artifacts | |
cp -r versions/*/build/libs/* gathered-artifacts/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: gathered-artifacts | |
summary: | |
runs-on: ubuntu-22.04 | |
needs: | |
- build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download all artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: Artifacts | |
path: gathered-artifacts | |
- name: Make build summary | |
run: python3 .github/workflows/scripts/summary.py # ubuntu-22.04 uses Python 3.10.6 | |
env: | |
TARGET_SUBPROJECT: '' # leaving this empty means all subprojects |