diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef1a162..92911f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,15 +3,13 @@ on: [pull_request, push] jobs: build: + name: Build runs-on: ubuntu-latest + container: + image: eclipse-temurin:17-jdk steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: gradle/wrapper-validation-action@v1 - - name: Setup JDK - uses: actions/setup-java@v3 - with: - distribution: temurin - java-version: 17 - run: chmod +x ./gradlew - name: Build with Gradle run: ./gradlew build --stacktrace diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b0bfe1..03113a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,3 @@ -# Automatically build the project and run any configured tests for every push -# and submitted pull request. This can help catch issues that only occur on -# certain platforms or Java versions, and provides a first line of defence -# against bad commits. - name: release on: release: @@ -12,14 +7,11 @@ jobs: build: name: Build runs-on: ubuntu-latest + container: + image: eclipse-temurin:17-jdk steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: gradle/wrapper-validation-action@v1 - - name: Setup JDK - uses: actions/setup-java@v3 - with: - distribution: "temurin" - java-version: 17 - run: chmod +x ./gradlew - name: Build with Gradle run: ./gradlew build --stacktrace @@ -55,14 +47,11 @@ jobs: deploy-mod: name: Deploy Mod runs-on: ubuntu-latest + container: + image: eclipse-temurin:17-jdk steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: gradle/wrapper-validation-action@v1 - - name: Setup JDK - uses: actions/setup-java@v3 - with: - distribution: "temurin" - java-version: 17 - run: chmod +x ./gradlew - name: Build with Gradle run: ./gradlew build --stacktrace