Skip to content

release-linux

release-linux #4

Workflow file for this run

name: linux release
on:
workflow_dispatch:
inputs:
branch:
required: true
type: string
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ inputs.branch }}
cancel-in-progress: true
env:
CI_REPO: https://github.com/opencca/ci-scripts
CI_RUN_SCRIPT: run-ci.sh
CI_BUILD_SCRIPT: build-linux.sh
jobs:
build-and-push:
runs-on: self-hosted
steps:
- name: Checkout caller repo
uses: actions/checkout@v4
with:
repository: opencca/linux
ref: ${{ inputs.branch }}
submodules: recursive
clean: true
path: linux
- name: Run build script
run: |
rm -rf .ci || true
git clone --depth 1 "$CI_REPO" .ci
cd .ci
./"$CI_RUN_SCRIPT" "$GITHUB_WORKSPACE" ./"$CI_BUILD_SCRIPT"
- name: Upload snapshot release
uses: opencca/ci-scripts/.github/release@opencca/main
with:
project: linux
branch: ${{ inputs.branch }}
artifact: |
snapshot/debian/*.deb
snapshot/Image
snapshot/kernel-rk3588-rock-5b.dtb
snapshot/rk3588-kernel-config
token: ${{ secrets.RELEASES_REPO_TOKEN }}