From 3193a135a41c73600ae888d1dfe437eca5f73bdf Mon Sep 17 00:00:00 2001 From: RTAkland Date: Tue, 29 Aug 2023 23:30:20 +0800 Subject: [PATCH] add CI --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..203f3ec --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: Build View Dimension Mod +on: + - push + - pull_request +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: View Dimension Fabric + path: build/libs/*.jar \ No newline at end of file