diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 0ec34f5dba..29f3643f76 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 @@ -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 @@ -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' @@ -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' @@ -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 diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index db19b78786..96d7cf8a63 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -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 @@ -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}}