Skip to content

Build on windows (seems more reliable) #257

Build on windows (seems more reliable)

Build on windows (seems more reliable) #257

Workflow file for this run

name: MoreUnit Build
on:
push:
branches: [ master ]
tags : ['*']
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
permissions:
checks: write
contents: write
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
- name: Set up Java ☕️
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Setup Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.4
- name: Build and verify for eclipse-4.25 (ignoring test results)
<<<<<<< Updated upstream

Check failure on line 35 in .github/workflows/maven.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/maven.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
env:
BUILD_ID: "${{ steps.time.outputs.time }}"
BUILD_TYPE: "S"
BUILD_LABEL: "CI ${{ steps.time.outputs.time }} (${{ steps.branch_name.outputs.branch }})"
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: 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
>>>>>>> Stashed changes
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() }}
uses: ScaCap/action-surefire-report@v1
with:
check_name: Test Results
- name: Flatten P2 repository
uses: RoiSoleil/flatten-p2-repo@main
with:
repository-path: "./org.moreunit.updatesite/target/repository/"
- name: Release SNAPSHOT
if: github.ref == 'refs/heads/master'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "snapshot"
prerelease: true
title: "Development Build"
files: |
./org.moreunit.updatesite/target/org.moreunit.updatesite-*-SNAPSHOT.zip
./org.moreunit.updatesite/target/flat-repository/*
- name: Release RELEASE
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
./org.moreunit.updatesite/target/org.moreunit.updatesite-*.zip
./org.moreunit.updatesite/target/flat-repository/*