diff --git a/.github/workflows/deploy.linux.temurin.lts.yml b/.github/workflows/deploy.linux.temurin.lts.yml index 0c46731c..3c1b85f2 100644 --- a/.github/workflows/deploy.linux.temurin.lts.yml +++ b/.github/workflows/deploy.linux.temurin.lts.yml @@ -28,3 +28,4 @@ jobs: MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} run: .github/workflows/deploy-release.sh + diff --git a/.github/workflows/main.linux.temurin.current.yml b/.github/workflows/main.linux.temurin.current.yml index 7604dd3d..d87b5932 100644 --- a/.github/workflows/main.linux.temurin.current.yml +++ b/.github/workflows/main.linux.temurin.current.yml @@ -1,10 +1,9 @@ + name: main.linux.temurin.current on: push: branches: [ develop, feature/*, release/* ] - pull_request: - branches: [ develop ] jobs: build: @@ -38,3 +37,5 @@ jobs: name: test-logs path: ./com.io7m.jtensors.tests/target/surefire-reports + + diff --git a/.github/workflows/main.linux.temurin.lts.yml b/.github/workflows/main.linux.temurin.lts.yml index 705a82a6..98a25e24 100644 --- a/.github/workflows/main.linux.temurin.lts.yml +++ b/.github/workflows/main.linux.temurin.lts.yml @@ -1,10 +1,9 @@ + name: main.linux.temurin.lts on: push: branches: [ develop, feature/*, release/* ] - pull_request: - branches: [ develop ] jobs: build: diff --git a/.github/workflows/main.windows.temurin.current.yml b/.github/workflows/main.windows.temurin.current.yml index ef331cbc..d38048ff 100644 --- a/.github/workflows/main.windows.temurin.current.yml +++ b/.github/workflows/main.windows.temurin.current.yml @@ -1,10 +1,9 @@ + name: main.windows.temurin.current on: push: branches: [ develop, feature/*, release/* ] - pull_request: - branches: [ develop ] jobs: build: @@ -38,3 +37,5 @@ jobs: name: test-logs path: ./com.io7m.jtensors.tests/target/surefire-reports + + diff --git a/.github/workflows/main.windows.temurin.lts.yml b/.github/workflows/main.windows.temurin.lts.yml index bea389f4..e2c4ed91 100644 --- a/.github/workflows/main.windows.temurin.lts.yml +++ b/.github/workflows/main.windows.temurin.lts.yml @@ -1,10 +1,9 @@ + name: main.windows.temurin.lts on: push: branches: [ develop, feature/*, release/* ] - pull_request: - branches: [ develop ] jobs: build: @@ -38,3 +37,5 @@ jobs: name: test-logs path: ./com.io7m.jtensors.tests/target/surefire-reports + + diff --git a/.github/workflows/pr.linux.temurin.current.yml b/.github/workflows/pr.linux.temurin.current.yml new file mode 100644 index 00000000..4876598e --- /dev/null +++ b/.github/workflows/pr.linux.temurin.current.yml @@ -0,0 +1,41 @@ + +name: pr.linux.temurin.current + +on: + pull_request: + branches: [ develop, feature/*, release/* ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: JDK + uses: actions/setup-java@v4 + with: + java-version: 22 + distribution: 'temurin' + + - name: Collect project version + id: project_version + run: java .github/workflows/Tools.java ShowProjectVersion pom.xml >> "$GITHUB_OUTPUT" + + - name: Collect project snapshot + id: project_is_snapshot + run: java .github/workflows/Tools.java ShowProjectIsSnapshot pom.xml >> "$GITHUB_OUTPUT" + + - name: Build + run: mvn --batch-mode --strict-checksums --errors clean verify site + + - name: Upload test logs + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-logs + path: ./com.io7m.jtensors.tests/target/surefire-reports + + + diff --git a/.github/workflows/pr.linux.temurin.lts.yml b/.github/workflows/pr.linux.temurin.lts.yml new file mode 100644 index 00000000..1efb62f4 --- /dev/null +++ b/.github/workflows/pr.linux.temurin.lts.yml @@ -0,0 +1,41 @@ + +name: pr.linux.temurin.lts + +on: + pull_request: + branches: [ develop, feature/*, release/* ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: JDK + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: 'temurin' + + - name: Collect project version + id: project_version + run: java .github/workflows/Tools.java ShowProjectVersion pom.xml >> "$GITHUB_OUTPUT" + + - name: Collect project snapshot + id: project_is_snapshot + run: java .github/workflows/Tools.java ShowProjectIsSnapshot pom.xml >> "$GITHUB_OUTPUT" + + - name: Build + run: mvn --batch-mode --strict-checksums --errors clean verify site + + - name: Upload test logs + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-logs + path: ./com.io7m.jtensors.tests/target/surefire-reports + + + diff --git a/.github/workflows/pr.windows.temurin.current.yml b/.github/workflows/pr.windows.temurin.current.yml new file mode 100644 index 00000000..d7d0cdea --- /dev/null +++ b/.github/workflows/pr.windows.temurin.current.yml @@ -0,0 +1,41 @@ + +name: pr.windows.temurin.current + +on: + pull_request: + branches: [ develop, feature/*, release/* ] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: JDK + uses: actions/setup-java@v4 + with: + java-version: 22 + distribution: 'temurin' + + - name: Collect project version + id: project_version + run: java .github/workflows/Tools.java ShowProjectVersion pom.xml >> "$GITHUB_OUTPUT" + + - name: Collect project snapshot + id: project_is_snapshot + run: java .github/workflows/Tools.java ShowProjectIsSnapshot pom.xml >> "$GITHUB_OUTPUT" + + - name: Build + run: mvn --batch-mode --strict-checksums --errors clean verify site + + - name: Upload test logs + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-logs + path: ./com.io7m.jtensors.tests/target/surefire-reports + + + diff --git a/.github/workflows/pr.windows.temurin.lts.yml b/.github/workflows/pr.windows.temurin.lts.yml new file mode 100644 index 00000000..bd4f1508 --- /dev/null +++ b/.github/workflows/pr.windows.temurin.lts.yml @@ -0,0 +1,41 @@ + +name: pr.windows.temurin.lts + +on: + pull_request: + branches: [ develop, feature/*, release/* ] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: JDK + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: 'temurin' + + - name: Collect project version + id: project_version + run: java .github/workflows/Tools.java ShowProjectVersion pom.xml >> "$GITHUB_OUTPUT" + + - name: Collect project snapshot + id: project_is_snapshot + run: java .github/workflows/Tools.java ShowProjectIsSnapshot pom.xml >> "$GITHUB_OUTPUT" + + - name: Build + run: mvn --batch-mode --strict-checksums --errors clean verify site + + - name: Upload test logs + uses: actions/upload-artifact@v4 + if: always() + with: + name: test-logs + path: ./com.io7m.jtensors.tests/target/surefire-reports + + +