Skip to content

Commit a8f1a4d

Browse files
PlaidCatgvrose8192
authored andcommitted
github actions: Make Builds on Merge Request Work
Since we need to make sure external contributors code actually compiles prior to merging. To get access to the forked repos merge request we need to switch over our push/pull_request to pull_request_target. In addition we're fixing up some Naming Conventions, adding aarch64 to this branch and fixing the naming so that we can quickly identify if the CI is for x86_64 or aarch64. Removes pull request checker it is being rewritten and doesn't work as intented for fork merges.
1 parent 1e96b3e commit a8f1a4d

File tree

3 files changed

+8
-60
lines changed

3 files changed

+8
-60
lines changed

.github/workflows/push-check_aarch64.yml renamed to .github/workflows/build-check_aarch64.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: CI
1+
name: aarch64 CI
22
on:
3-
push:
3+
pull_request_target:
44
branches:
55
- '**'
66
- '!mainline'
@@ -24,10 +24,11 @@ jobs:
2424
- name: Checkout code
2525
uses: actions/checkout@v4
2626
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
2728
fetch-depth: 0
2829
- name: Build the Kernel
2930
run: |
30-
git config --global --add safe.directory /__w/kernel-src-git/kernel-src-git
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
3132
cp configs/kernel-5.14.0-aarch64.config .config
3233
make olddefconfig
3334
make -j8

.github/workflows/push-check_x86_64.yml renamed to .github/workflows/build-check_x86_64.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: CI
1+
name: x86_64 CI
22
on:
3-
push:
3+
pull_request_target:
44
branches:
55
- '**'
66
- '!mainline'
@@ -24,10 +24,11 @@ jobs:
2424
- name: Checkout code
2525
uses: actions/checkout@v4
2626
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
2728
fetch-depth: 0
2829
- name: Build the Kernel
2930
run: |
30-
git config --global --add safe.directory /__w/kernel-src-git/kernel-src-git
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
3132
cp configs/kernel-5.14.0-x86_64.config .config
3233
make olddefconfig
3334
make -j8

.github/workflows/process-pull-request.yml

-54
This file was deleted.

0 commit comments

Comments
 (0)