|
@@ -18,17 +18,14 @@ on:
|
|
|
|
|
|
jobs:
|
|
|
check-skip:
|
|
|
- # continue-on-error: true # Uncomment once integration is finished
|
|
|
runs-on: ubuntu-20.04
|
|
|
- # Map a step output to a job output
|
|
|
outputs:
|
|
|
- should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
|
+ platform: ${{ steps.skip_check.outputs.platform }}
|
|
|
steps:
|
|
|
- id: skip_check
|
|
|
- uses: hpcc-systems/skip-duplicate-actions@master
|
|
|
+ uses: hpcc-systems/github-actions/changed-modules@main
|
|
|
with:
|
|
|
github_token: ${{ github.token }}
|
|
|
- paths_ignore: '["docs/**", "esp/src/**/*", "dockerfiles/**", "helm/**", "ecllibrary/**", "testing/**", "initfiles/**" ]'
|
|
|
|
|
|
build:
|
|
|
strategy:
|
|
@@ -70,9 +67,10 @@ jobs:
|
|
|
run: |
|
|
|
echo ${{ matrix.os }} ${{ matrix.triplet }}
|
|
|
echo "Checkout to $Env:GITHUB_WORKSPACE"
|
|
|
+ echo "Platform Changed: ${{ needs.check-skip.outputs.platform }}"
|
|
|
|
|
|
- name: Ubuntu Dependencies
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' && matrix.os == 'ubuntu-20.04' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform && matrix.os == 'ubuntu-20.04' }}
|
|
|
shell: "bash"
|
|
|
run: |
|
|
|
sudo apt-get update -y
|
|
@@ -88,33 +86,33 @@ jobs:
|
|
|
sudo apt-get install -y nodejs
|
|
|
|
|
|
- name: OSX Dependencies
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' && matrix.os == 'macos-11' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform && matrix.os == 'macos-11' }}
|
|
|
shell: "bash"
|
|
|
run: |
|
|
|
brew install bison flex pkg-config automake libtool cmake
|
|
|
|
|
|
- name: "Remove builtin vcpkg"
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform }}
|
|
|
working-directory: .
|
|
|
shell: "bash"
|
|
|
run: |
|
|
|
${{ matrix.sudo }} rm -rf "$VCPKG_INSTALLATION_ROOT"
|
|
|
|
|
|
- name: Check out source code
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform }}
|
|
|
uses: actions/checkout@v2
|
|
|
with:
|
|
|
submodules: recursive
|
|
|
|
|
|
- name: "vcpkg Bootstrap"
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform }}
|
|
|
working-directory: .
|
|
|
shell: "bash"
|
|
|
run: |
|
|
|
./vcpkg/bootstrap-vcpkg.sh
|
|
|
|
|
|
- name: "Setup NuGet credentials"
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform }}
|
|
|
working-directory: ./vcpkg
|
|
|
shell: "bash"
|
|
|
run: |
|
|
@@ -130,7 +128,7 @@ jobs:
|
|
|
-source "https://nuget.pkg.github.com/hpcc-systems/index.json"
|
|
|
|
|
|
- name: "Generate HPCC-Platform Build Files"
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform }}
|
|
|
working-directory: .
|
|
|
shell: "bash"
|
|
|
run: |
|
|
@@ -139,7 +137,7 @@ jobs:
|
|
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ${{ matrix.cmake_config_options }}
|
|
|
|
|
|
- name: "Build HPCC-Platform"
|
|
|
- if: ${{ needs.check-skip.outputs.should_skip != 'true' }}
|
|
|
+ if: ${{ needs.check-skip.outputs.platform }}
|
|
|
working-directory: ./build
|
|
|
shell: "bash"
|
|
|
run: |
|