storage #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
dependency-resolution: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Cache local Maven repository | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven- | |
- name: asdf_install | |
uses: asdf-vm/actions/install@v3 | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: download dependencies | |
id: download-dependencies | |
run: | | |
export JAVA_HOME=$(asdf where java) | |
export MAVEN_OPTS="-Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd'T'HH:mm:ss:SSSZ -Djava.awt.headless=true" | |
./mvnw de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
build: | |
strategy: | |
matrix: | |
product: ['tos.bd','tos.di','tos.dq','tos.esb'] | |
runs-on: ubuntu-latest | |
needs: dependency-resolution | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Retrieve cached local Maven repository | |
id: cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: ~/.m2/repository | |
key: maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven- | |
- name: asdf_install | |
uses: asdf-vm/actions/install@v3 | |
- name: build talend open studio | |
run: | | |
export JAVA_HOME=$(asdf where java) | |
export MAVEN_OPTS="-Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd'T'HH:mm:ss:SSSZ -Djava.awt.headless=true" | |
./mvnw clean install -Pofficial -DskipTests -D${{ matrix.product }}=true | |
- name: Archive build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.product }} | |
path: 'build/storage/**' |