Skip to content

Commit

Permalink
Use github-specified primary repository for CI/CD workflow. (#3345)
Browse files Browse the repository at this point in the history
Co-authored-by: Dhiren Vispute <[email protected]>
  • Loading branch information
dv-msft and Dhiren Vispute authored Mar 13, 2024
1 parent 5e84f5c commit 3c6203e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
uses: ./.github/workflows/reusable-build.yml
with:
ref: ${{ github.ref }}
repository: ${{ github.repository }}
build_artifact: Build-x64
generate_release_package: true
build_msi: true
Expand All @@ -63,6 +64,7 @@ jobs:
uses: ./.github/workflows/reusable-build.yml
with:
ref: ${{ github.ref }}
repository: ${{ github.repository }}
build_artifact: Build-x64-native-only
build_msi: true
build_nuget: true
Expand Down Expand Up @@ -266,6 +268,7 @@ jobs:
uses: ./.github/workflows/reusable-build.yml
with:
ref: ${{ github.ref }}
repository: ${{ github.repository }}
build_artifact: Build-x64-Analyze
# Analysis on external projects is conditional, as on small CI/CD VMs the compiler can run OOM
build_options: /p:Analysis='True' /p:AnalysisOnExternal='False'
Expand All @@ -277,6 +280,7 @@ jobs:
uses: ./.github/workflows/reusable-build.yml
with:
ref: ${{ github.ref }}
repository: ${{ github.repository }}
build_artifact: Build-x64-Sanitize
build_options: /p:AddressSanitizer='True'

Expand Down Expand Up @@ -476,6 +480,7 @@ jobs:
uses: ./.github/workflows/reusable-build.yml
with:
ref: ${{ github.ref }}
repository: ${{ github.repository }}
build_artifact: Build-x64-CodeQl
build_codeql: true

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
ref:
required: true
type: string
# repository to be used (needed for self-hosted runner setups)
repository:
required: true
type: string
# Name associated with the output of this build.
build_artifact:
required: true
Expand Down Expand Up @@ -87,7 +91,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
if: steps.skip_check.outputs.should_skip != 'true'
with:
repository: microsoft/ebpf-for-windows
repository: ${{inputs.repository}}
submodules: 'recursive'
ref: ${{inputs.ref}}

Expand Down

0 comments on commit 3c6203e

Please sign in to comment.