This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add references property to the force-data-tree-import task
- Loading branch information
Showing
11 changed files
with
151 additions
and
88 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '.vscode/**' | ||
- '.editorconfig' | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
PACKAGE_VERSION: 1.2.${{ github.run_number }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 8 | ||
java-package: jdk | ||
distribution: temurin | ||
- name: Cache binary dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.tmp/* | ||
.tmp/cloc.pl | ||
!.tmp/*.gz | ||
!.tmp/*.xz | ||
!.tmp/*.zip | ||
key: bin-${{ hashFiles('build/versions.env') }} | ||
- name: Cache Ivy dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ivy | ||
key: ivy-${{hashFiles('ivy.xml')}} | ||
- name: Prepare build environment | ||
shell: bash | ||
run: | | ||
source build/setenv.sh | ||
# Only way to share environment variables between steps... | ||
echo "ANT_HOME=$ANT_HOME" >> $GITHUB_ENV | ||
echo "PMD_HOME=$PMD_HOME" >> $GITHUB_ENV | ||
echo "$ANT_HOME/bin" >> $GITHUB_PATH | ||
mkdir -p ivy | ||
if [ ! -f ivy/ivy.jar ]; then wget -nv -O ivy/ivy.jar https://repo1.maven.org/maven2/org/apache/ivy/ivy/$_IVY_VERSION/ivy-$_IVY_VERSION.jar; fi | ||
java -jar ivy/ivy.jar -retrieve "ivy/lib/[conf]/[artifact].[ext]" -confs build | ||
- name: Build | ||
shell: bash | ||
run: | | ||
ant -noclasspath -nouserlib -noinput -logger org.apache.tools.ant.listener.AnsiColorLogger -Dverbosity=debug -f build.xml release | ||
- name: JUnit Tests Report | ||
if: success() || failure() | ||
uses: dorny/test-reporter@v1 | ||
with: | ||
name: JUnit Tests | ||
path: tmp/junit-results.xml | ||
reporter: java-junit | ||
fail-on-error: true | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: | | ||
tmp/out/bin/**.* | ||
- name: Archive logs | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: logs | ||
path: | | ||
build.log | ||
retention-days: 2 | ||
- name: Archive results | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: results | ||
path: | | ||
tmp/junit-results | ||
tmp/*-results.html | ||
tmp/*-results.xml | ||
retention-days: 8 | ||
- name: Create release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
draft: true | ||
files: | | ||
tmp/out/bin/**.* |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
source build/.bashrc | ||
source build/setenv.sh | ||
|
||
|
||
|
||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@ECHO OFF | ||
::-------------------------------------------------------------------- | ||
:: Usage: "mad_drive <drive_name>" | ||
:: | ||
:: <drive_name> - Optional. W: by default. | ||
::-------------------------------------------------------------------- | ||
|
||
SETLOCAL | ||
SET MAPPED_DRIVE_NAME=%~1 | ||
IF "x%MAPPED_DRIVE_NAME%x"=="xx" SET MAPPED_DRIVE_NAME=W: | ||
|
||
NET USE %MAPPED_DRIVE_NAME% /DELETE | ||
SUBST %MAPPED_DRIVE_NAME% /D >NUL | ||
SUBST %MAPPED_DRIVE_NAME% "%~dp0." | ||
|
||
ENDLOCAL |
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
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
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