ci: update libbpf/ci references to use "main"

Seems like deafult branch was renamed s/master/main/, adopt libbpf CI to
not fail.

Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
Andrii Nakryiko
2023-03-27 10:38:26 -07:00
committed by Andrii Nakryiko
parent f8cd00f613
commit b362bb6e10

View File

@@ -18,7 +18,7 @@ runs:
steps: steps:
# setup environment # setup environment
- name: Setup environment - name: Setup environment
uses: libbpf/ci/setup-build-env@master uses: libbpf/ci/setup-build-env@main
with: with:
pahole: ${{ inputs.pahole }} pahole: ${{ inputs.pahole }}
# 1. download CHECKPOINT kernel source # 1. download CHECKPOINT kernel source
@@ -28,13 +28,13 @@ runs:
cat CHECKPOINT-COMMIT cat CHECKPOINT-COMMIT
echo "CHECKPOINT=$(cat CHECKPOINT-COMMIT)" >> $GITHUB_ENV echo "CHECKPOINT=$(cat CHECKPOINT-COMMIT)" >> $GITHUB_ENV
- name: Get kernel source at checkpoint - name: Get kernel source at checkpoint
uses: libbpf/ci/get-linux-source@master uses: libbpf/ci/get-linux-source@main
with: with:
repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git' repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git'
rev: ${{ env.CHECKPOINT }} rev: ${{ env.CHECKPOINT }}
dest: '${{ github.workspace }}/.kernel' dest: '${{ github.workspace }}/.kernel'
- name: Patch kernel source - name: Patch kernel source
uses: libbpf/ci/patch-kernel@master uses: libbpf/ci/patch-kernel@main
with: with:
patches-root: '${{ github.workspace }}/ci/diffs' patches-root: '${{ github.workspace }}/ci/diffs'
repo-root: '.kernel' repo-root: '.kernel'
@@ -64,7 +64,7 @@ runs:
# else, just download prebuilt kernel image # else, just download prebuilt kernel image
- name: Download prebuilt kernel - name: Download prebuilt kernel
if: ${{ inputs.kernel != 'LATEST' }} if: ${{ inputs.kernel != 'LATEST' }}
uses: libbpf/ci/download-vmlinux@master uses: libbpf/ci/download-vmlinux@main
with: with:
kernel: ${{ inputs.kernel }} kernel: ${{ inputs.kernel }}
arch: ${{ inputs.arch }} arch: ${{ inputs.arch }}
@@ -76,7 +76,7 @@ runs:
kernel: ${{ inputs.kernel }} kernel: ${{ inputs.kernel }}
# 4. prepare rootfs # 4. prepare rootfs
- name: prepare rootfs - name: prepare rootfs
uses: libbpf/ci/prepare-rootfs@master uses: libbpf/ci/prepare-rootfs@main
env: env:
KBUILD_OUTPUT: '.kernel' KBUILD_OUTPUT: '.kernel'
with: with:
@@ -91,7 +91,7 @@ runs:
env: env:
KERNEL: ${{ inputs.kernel }} KERNEL: ${{ inputs.kernel }}
REPO_ROOT: ${{ github.workspace }} REPO_ROOT: ${{ github.workspace }}
uses: libbpf/ci/run-qemu@master uses: libbpf/ci/run-qemu@main
with: with:
arch: ${{ inputs.arch }} arch: ${{ inputs.arch }}
img: '/tmp/root.img' img: '/tmp/root.img'