From 4438fbf4e10f8718089b50d4f10d016380959a50 Mon Sep 17 00:00:00 2001 From: RTAkland Date: Sun, 19 Nov 2023 07:48:33 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f41a9ca --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Build RMC +on: + - push +jobs: + build: + strategy: + matrix: + java: + - 17 + os: + - ubuntu-latest + runs-on: ${{ matrix.os }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Validate gradle wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Setup jdk ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Make Gradle wrapper executable + if: ${{ runner.os != 'Windows' }} + run: chmod +x ./gradlew + - name: Build + run: ./gradlew build + - name: Upload build artifacts + if: ${{ runner.os == 'Linux' && matrix.java == '17' }} + uses: actions/upload-artifact@v2 + with: + name: RMC + path: build/libs/*.jar