Skip to content

Add storage/overwrite attributes to config/option elements #139

Add storage/overwrite attributes to config/option elements

Add storage/overwrite attributes to config/option elements #139

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
create:
tags:
- "*"
repository_dispatch:
types:
- build
jobs:
build:
name: Build
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
include:
- os: ubuntu-latest
may-publish: true
runs-on: ${{ matrix.os }}
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
steps:
- name: Check new version
if: matrix.may-publish && github.event_name == 'create' && github.event.ref_type == 'tag'
id: check-tag
run: |
tagName="${GITHUB_REF#refs/tags/}"
if printf '%s' "$tagName" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "tag=$tagName" >>"$GITHUB_OUTPUT"
fi
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: temurin
cache: maven
-
name: Install Xerces with XSD 1.1 support in local M2 repository (POSIX)
if: startsWith(matrix.os, 'windows') == false
run: ./bin/install-xerces-m2.sh
-
name: Install Xerces with XSD 1.1 support in local M2 repository (Windows)
if: startsWith(matrix.os, 'windows')
run: ./bin/install-xerces-m2.ps1
-
name: Update version
if: steps.check-tag.outputs.tag
run: mvn --batch-mode "-Dstyle.color=always" "org.eclipse.tycho:tycho-versions-plugin:2.7.5:set-version" "-DnewVersion=${{ steps.check-tag.outputs.tag }}"
-
name: Compile
run: mvn --batch-mode "-Dstyle.color=always" compile
-
name: Verify
run: mvn --batch-mode "-Dstyle.color=always" verify
-
name: Print version
run: java -jar concrete-cif.jar --version
-
name: Test jar (POSIX)
if: startsWith(matrix.os, 'windows') == false
run: ./.github/workflows/test-jar.sh
-
name: Test jar (Windows)
if: startsWith(matrix.os, 'windows')
run: ./.github/workflows/test-jar.ps1
-
name: Calculate hash
if: steps.check-tag.outputs.tag
run: sha1sum concrete-cif.jar | tee -a concrete-cif.jar.sha1
-
name: Create release
if: steps.check-tag.outputs.tag
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
concrete-cif.jar
concrete-cif.jar.sha1
src/main/resources/concrete-cif-1.0.xsd