Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and update GitHub Actions workflow for building the kernel on PR #225

Merged
merged 3 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
name: Build Kernels at PR
name: Build kernel on PR

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, edited, synchronize]
types: [opened, synchronize]

jobs:

Build:
name: Compile kernel
name: Compile and upload kernel
runs-on: rockchip
if: ${{ github.repository_owner == 'armbian' }}
env:
OCI_TARGET_BASE: "ghcr.io/${{ github.repository }}/" # This is picked up by the Docker launcher automatically
steps:

# Login to ghcr.io, for later uploading rootfs to ghcr.io
- name: Docker Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }} # GitHub username or org
password: ${{ secrets.GITHUB_TOKEN }} # GitHub actions builtin token. repo has to have pkg access.
password: ${{ secrets.GITHUB_TOKEN }} # GitHub actions builtin token. repo has to have pkg access.

- name: Checkout build repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: armbian/build
ref: main
ref: main
fetch-depth: 1
clean: false

- name: Build Kernel at ${{ github.event.pull_request.head.sha }}
- name: Build kernel at ${{ github.event.pull_request.head.sha }}
id: kernel
run: |

Expand All @@ -48,8 +46,8 @@ jobs:
BRANCH=vendor \
ENABLE_EXTENSIONS="pull-request"

- name: Upload Artifact
uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-rockchip-vendor
path: output/debs/*.deb
Expand Down