Skip to content

Commit

Permalink
Updated ci.yml workflow filter (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: Ayush Kumar Baheti <[email protected]>
  • Loading branch information
abahetik and ni-abahetik authored Sep 29, 2022
1 parent 14b2b0f commit 120be89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_release_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run:
python ${{runner.workspace}}\grpc-labview\build-it\build.py --target All --pathToBinaries ${{ runner.temp }}\grpc-labview-staged-artifacts\TopLevelDlls

- name: Zip Release Artifacts
- if: startsWith(github.ref, 'refs/tags/v')
name: Zip Release Artifacts
run: |
cd "${{runner.workspace}}/grpc-labview/labview source/Builds"
tar -cavf grpc-labview.zip *.vip
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build_windows_x64:
uses: ./.github/workflows/windows_x64_build.yml
Expand All @@ -19,9 +23,10 @@ jobs:
uses: ./.github/workflows/build_on_rt.yml

build_release_arifacts:
if: ${{ github.repository == 'ni/grpc-labview' || github.event.pull_request.head.repo.full_name == 'ni/grpc-labview' }}
needs:
- build_windows_x64
- build_windows_x86
- build_linux
- build_linux_rt
uses: ./.github/workflows/build_release_artifacts.yml
uses: ./.github/workflows/build_release_artifacts.yml

0 comments on commit 120be89

Please sign in to comment.