Skip to content

Commit

Permalink
actions: Format workflow with YAML formatter and fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ColorfulRhino authored and amazingfate committed Aug 28, 2024
1 parent edb7b81 commit 5c2959a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 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, 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
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
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,7 +46,7 @@ jobs:
BRANCH=vendor \
ENABLE_EXTENSIONS="pull-request"
- name: Upload Artifact
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: linux-rockchip-vendor
Expand Down

0 comments on commit 5c2959a

Please sign in to comment.