Skip to content

Commit dd811f2

Browse files
dmcgowanaustinvazquez
authored andcommitted
Update github actions ci to run on forks
Excludes actuated when on fork. Runs some project tests on fork. Signed-off-by: Derek McGowan <[email protected]> (cherry picked from commit 357c59b) Signed-off-by: Austin Vazquez <[email protected]>
1 parent bf981c1 commit dd811f2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
strategy:
2828
matrix:
2929
os: [ubuntu-20.04, actuated-arm64-4cpu-16gb, macos-13, windows-2019]
30+
exclude:
31+
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
3032

3133
steps:
3234
- uses: actions/checkout@v4
@@ -43,7 +45,6 @@ jobs:
4345
#
4446
project:
4547
name: Project Checks
46-
if: github.repository == 'containerd/containerd'
4748
runs-on: ubuntu-20.04
4849
timeout-minutes: 5
4950

@@ -56,6 +57,7 @@ jobs:
5657
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
5758

5859
- uses: containerd/[email protected]
60+
if: github.repository == 'containerd/containerd'
5961
with:
6062
working-directory: src/github.com/containerd/containerd
6163
repo-access-token: ${{ secrets.GITHUB_TOKEN }}
@@ -193,6 +195,8 @@ jobs:
193195
matrix:
194196
os: [ubuntu-20.04, actuated-arm64-4cpu-16gb, macos-13, windows-2019, windows-2022]
195197
go-version: ["1.22.8", "1.23.2"]
198+
exclude:
199+
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
196200
steps:
197201
- uses: actions/checkout@v4
198202
- uses: ./.github/actions/install-go
@@ -394,6 +398,7 @@ jobs:
394398
enable_cri_sandboxes: ["", "sandboxed"]
395399
os: [ubuntu-20.04, actuated-arm64-4cpu-16gb]
396400
exclude:
401+
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
397402
- runtime: io.containerd.runc.v1
398403
runc: crun
399404
- runtime: io.containerd.runtime.v1.linux

0 commit comments

Comments
 (0)