Build kernel for Variscite var-som-mx8m-nano #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build kernel for Variscite var-som-mx8m-nano | |
on: | |
workflow_dispatch: | |
inputs: | |
distribution_release: | |
description: 'Debian distribution release' | |
required: true | |
default: 'bookworm' | |
kernel_branch: | |
description: 'Variscite kernel branch name (e.g. lf-6.1.y_var03)' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Pull docker container | |
run: docker pull debian:"${{ inputs.distribution_release }}" | |
- name: Run build job within docker container | |
run: docker run -v $(pwd):/data/runner debian:"${{ inputs.distribution_release }}" bash -c "/data/runner/.github/scripts/build-kernel-var-som-mx8m-nano ${{ inputs.kernel_branch }}" | |
- name: Upload package to packagecloud repository | |
run: ./.github/scripts/upload-kernel-packages-packagecloud "${PACKAGECLOUD_USER}" "${PACKAGECLOUD_REPOSITORY}" debian "${{ inputs.distribution_release }}" | |
env: | |
PACKAGECLOUD_USER: ${{ secrets.PACKAGECLOUD_USER }} | |
PACKAGECLOUD_REPOSITORY: ${{ secrets.PACKAGECLOUD_REPOSITORY }} | |
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} |