Skip to content

Commit

Permalink
Build on windows (seems more reliable)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiSoleil authored and Hélios GILLES committed Dec 28, 2023
1 parent 4bbf245 commit 794bf50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: MoreUnit Build

on:
Expand All @@ -13,26 +10,18 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: windows-latest

permissions:
checks: write
contents: write

steps:
- name: Cygwin
uses: cygwin/cygwin-install-action@v4

- name: Checkout 🛎
uses: actions/checkout@v4

- name: Get Time for BUILD_ID
id: time
uses: nanzm/[email protected]
with:
format: 'YYYYMMDD_HHmm'

- name: Get Branch name for BUILD_LABEL
id: branch_name
shell: bash
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"

- name: Set up Java ☕️
uses: actions/setup-java@v4
Expand All @@ -46,18 +35,10 @@ jobs:
maven-version: 3.9.4

- name: Build and verify for eclipse-4.25 (ignoring test results)
env:
BUILD_ID: "${{ steps.time.outputs.time }}"
BUILD_TYPE: "S"
BUILD_LABEL: "CI ${{ steps.time.outputs.time }} (${{ steps.branch_name.outputs.branch }})"
run: xvfb-run mvn -file org.moreunit.build/pom.xml clean verify -Dtarget.platform.classifier=eclipse-4.25 -Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true --fail-at-end -Dtycho.disableP2Mirrors=true --batch-mode --strict-checksums --update-snapshots -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
run: mvn -file org.moreunit.build/pom.xml clean verify "-Dtarget.platform.classifier=eclipse-4.25" "-Dmaven.test.failure.ignore=true" "-Dmaven.test.error.ignore=true" --fail-at-end "-Dtycho.disableP2Mirrors=true" --batch-mode --strict-checksums --update-snapshots "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"

- name: Build and verify for eclipse-4.30
env:
BUILD_ID: "${{ steps.time.outputs.time }}"
BUILD_TYPE: "S"
BUILD_LABEL: "CI ${{ steps.time.outputs.time }} (${{ steps.branch_name.outputs.branch }})"
run: xvfb-run mvn -file org.moreunit.build/pom.xml clean install -Dtarget.platform.classifier=eclipse-4.30 --fail-at-end -Dtycho.disableP2Mirrors=true --batch-mode --strict-checksums --update-snapshots -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
run: mvn -file org.moreunit.build/pom.xml clean install "-Dtarget.platform.classifier=eclipse-4.30" --fail-at-end "-Dtycho.disableP2Mirrors=true" --batch-mode --strict-checksums --update-snapshots "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"

- name: Publish Surefire Test Results for 🖨
if: ${{ always() }}
Expand Down
1 change: 0 additions & 1 deletion org.moreunit.build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<artifactId>moreunit</artifactId>
<version>3.3.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>MoreUnit Parent</name>
<modules>
<module>../org.moreunit.core</module>
<module>../org.moreunit.plugin</module>
Expand Down

0 comments on commit 794bf50

Please sign in to comment.