Forráskód Böngészése

Merge pull request #15888 from GordonSmith/HPCC-27103-VCPKG_SKIP

HPCC-27103 Relocate vcpkg skip logic

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 3 éve
szülő
commit
b42cfc7f96
1 módosított fájl, 10 hozzáadás és 5 törlés
  1. 10 5
      .github/workflows/build-vcpkg.yml

+ 10 - 5
.github/workflows/build-vcpkg.yml

@@ -17,7 +17,7 @@ on:
       - "!candidate-6.*"
 
 jobs:
-  pre_job:
+  check-skip:
     # continue-on-error: true # Uncomment once integration is finished
     runs-on: ubuntu-20.04
     # Map a step output to a job output
@@ -62,8 +62,7 @@ jobs:
       fail-fast: false
 
     name: "Build with vcpkg"
-    needs: pre_job
-    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
+    needs: check-skip
     runs-on: ${{ matrix.os }}
     steps:
       - name: Display build summary
@@ -73,7 +72,7 @@ jobs:
           echo "Checkout to $Env:GITHUB_WORKSPACE"
 
       - name: Ubuntu Dependencies
-        if: ${{ matrix.os == 'ubuntu-20.04' }}
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.os == 'ubuntu-20.04' }}
         shell: "bash"
         run: |
           sudo apt-get update -y
@@ -89,29 +88,33 @@ jobs:
           sudo apt-get install -y nodejs
 
       - name: OSX Dependencies
-        if: ${{ matrix.os == 'macos-11' }}
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.os == 'macos-11' }}
         shell: "bash"
         run: |
           brew install bison flex pkg-config automake libtool cmake
 
       - name: "Remove builtin vcpkg"
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
         working-directory: .
         shell: "bash"
         run: |
           ${{ matrix.sudo }} rm -rf "$VCPKG_INSTALLATION_ROOT"
 
       - name: Check out source code
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
         uses: actions/checkout@v2
         with:
           submodules: recursive
 
       - name: "vcpkg Bootstrap"
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
         working-directory: .
         shell: "bash"
         run: |
           ./vcpkg/bootstrap-vcpkg.sh
 
       - name: "Setup NuGet credentials"
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
         working-directory: ./vcpkg
         shell: "bash"
         run: |
@@ -127,6 +130,7 @@ jobs:
             -source "https://nuget.pkg.github.com/hpcc-systems/index.json"
 
       - name: "Generate HPCC-Platform Build Files"
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
         working-directory: .
         shell: "bash"
         run: |
@@ -135,6 +139,7 @@ jobs:
           cmake .. -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ${{ matrix.cmake_config_options }}
 
       - name: "Build HPCC-Platform"
+        if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
         working-directory: ./build
         shell: "bash"
         run: |