Bump com.google.protobuf:protobuf-java from 3.19.2 to 3.25.5 in /Protocol #115
This file contains hidden or 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: [ push, pull_request, workflow_dispatch ] | |
env: | |
VERSION: "1.1.2" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ 8, 11, 16, 17 ] | |
name: 🔥 Build [Java ${{ matrix.java }}] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ❤️ Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'adopt' | |
architecture: x64 | |
- name: 🍎 Cache the Maven packages to speed up build | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: 😎 Create artifact directory | |
run: mkdir ${{ GITHUB.WORKSPACE }}/DownloadArtifact | |
- name: 🚩Install Protobuf compiler | |
uses: arduino/setup-protoc@v1 | |
- name: 🥰 Compile protobuf files | |
run: protoc -I=protobuf/ --java_out=Protocol/src/main/java/ protobuf/*.proto | |
- name: 💻 Build Commons | |
run: | | |
cd Commons | |
mvn clean install -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e | |
mvn -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml | |
- name: 💻 Build Protocol | |
run: | | |
cd Protocol | |
mvn clean install -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e | |
mvn -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml | |
- name: 💻 Build BungeeCord | |
run: | | |
cd BungeeCord | |
mvn clean install -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e | |
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml | |
- name: 💻 Build Spigot | |
run: | | |
cd Spigot | |
mvn clean install -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e | |
mvn -Dcompile.output=${{ GITHUB.WORKSPACE }}/DownloadArtifact -Dcompile.java_version=${{ matrix.java }} -Dcompile.version=v${{ env.VERSION }}-${{ github.sha }} -B -e package --file pom.xml | |
- name: 🖤 Create artifact | |
uses: 'actions/upload-artifact@v2' | |
with: | |
name: "OpenSourceSectors_v${{ env.VERSION }}-${{ github.sha }}-JDK${{ matrix.java }}" | |
path: '${{ GITHUB.WORKSPACE }}/DownloadArtifact/*' | |
retention-days: 7 | |
if-no-files-found: error |