Skip to content

Commit 2178cc4

Browse files
authored
Change ci that can run from other repos (#4703)
1 parent 761dc0b commit 2178cc4

6 files changed

+28
-6
lines changed

.github/workflows/build-darwin-framework.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ jobs:
2525
uses: ./.github/workflows/build-reuse-darwin-framework.yml
2626
with:
2727
config: 'Release'
28+
repo: ${{ github.repository }}

.github/workflows/build-reuse-darwin-framework.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
required: false
88
default: ''
99
type: string
10+
repo:
11+
required: false
12+
default: microsoft/msquic
13+
type: string
1014
config:
1115
required: false
1216
default: 'Release'
@@ -55,7 +59,7 @@ jobs:
5559
- name: Checkout repository
5660
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
5761
with:
58-
repository: microsoft/msquic
62+
repository: ${{ inputs.repo}}
5963
ref: ${{ inputs.ref }}
6064
- name: Download Build Artifacts (x64)
6165
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
@@ -92,7 +96,7 @@ jobs:
9296
- name: Checkout repository
9397
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
9498
with:
95-
repository: microsoft/msquic
99+
repository: ${{ inputs.repo}}
96100
ref: ${{ inputs.ref }}
97101
- name: Download Build Artifacts (x64)
98102
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
@@ -116,7 +120,7 @@ jobs:
116120
- name: Checkout repository
117121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
118122
with:
119-
repository: microsoft/msquic
123+
repository: ${{ inputs.repo}}
120124
ref: ${{ inputs.ref }}
121125
- name: Download Build Artifacts (iOS x64)
122126
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16

.github/workflows/build-reuse-unix.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
required: false
1010
default: ''
1111
type: string
12+
repo:
13+
required: false
14+
default: microsoft/msquic
15+
type: string
1216
config:
1317
required: false
1418
default: 'Release'
@@ -91,7 +95,7 @@ jobs:
9195
- name: Checkout repository
9296
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
9397
with:
94-
repository: microsoft/msquic
98+
repository: ${{ inputs.repo}}
9599
ref: ${{ inputs.ref }}
96100
- name: Set ownership
97101
if: inputs.plat == 'linux'

.github/workflows/build-reuse-win.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
required: false
1010
default: ''
1111
type: string
12+
repo:
13+
required: false
14+
default: microsoft/msquic
15+
type: string
1216
config:
1317
required: false
1418
default: 'Release'
@@ -71,7 +75,7 @@ jobs:
7175
- name: Checkout repository
7276
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
7377
with:
74-
repository: microsoft/msquic
78+
repository: ${{ inputs.repo}}
7579
ref: ${{ inputs.ref }}
7680
- name: Install Perl
7781
uses: shogo82148/actions-setup-perl@98dfedee230bcf1ee68d5b021931fc8d63f2016e

.github/workflows/build-reuse-winkernel.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
required: false
1010
default: ''
1111
type: string
12+
repo:
13+
required: false
14+
default: microsoft/msquic
15+
type: string
1216
config:
1317
required: false
1418
default: 'Release'
@@ -60,7 +64,7 @@ jobs:
6064
- name: Checkout repository
6165
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
6266
with:
63-
repository: microsoft/msquic
67+
repository: ${{ inputs.repo}}
6468
ref: ${{ inputs.ref }}
6569
- name: Prepare Machine
6670
shell: pwsh

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
arch: ${{ matrix.arch }}
5454
tls: ${{ matrix.tls }}
5555
static: ${{ matrix.static }}
56+
repo: ${{ github.repository }}
5657

5758
build-windows-kernel:
5859
name: WinKernel
@@ -72,6 +73,7 @@ jobs:
7273
os: ${{ matrix.os }}
7374
arch: ${{ matrix.arch }}
7475
tls: ${{ matrix.tls }}
76+
repo: ${{ github.repository }}
7577

7678
build-ubuntu-cross-compile:
7779
name: UbuntuArm
@@ -93,6 +95,7 @@ jobs:
9395
arch: ${{ matrix.arch }}
9496
tls: ${{ matrix.tls }}
9597
static: ${{ matrix.static }}
98+
repo: ${{ github.repository }}
9699

97100
build-ubuntu:
98101
name: Ubuntu
@@ -177,6 +180,7 @@ jobs:
177180
clang: ${{ matrix.clang }}
178181
codecheck: ${{ matrix.codecheck }}
179182
xdp: ${{ matrix.xdp }}
183+
repo: ${{ github.repository }}
180184

181185
build-darwin:
182186
name: MacOs
@@ -198,6 +202,7 @@ jobs:
198202
arch: ${{ matrix.arch }}
199203
tls: ${{ matrix.tls }}
200204
static: ${{ matrix.static }}
205+
repo: ${{ github.repository }}
201206

202207
build-nuget:
203208
name: Build Nuget Package

0 commit comments

Comments
 (0)