armbian-build/.github/workflows
2022-01-22 19:29:16 +01:00
..
build-beta-images.yml Fixes for Github Actions (#3379) 2022-01-06 11:50:43 +01:00
build-cache.yml Github actions tweaks (#3383) 2022-01-11 15:26:28 +01:00
build-kernel-on-merge-request.yml Update build-kernel-on-merge-request.yml (#3425) 2022-01-22 19:29:16 +01:00
build-test-image-docker.yml Assemble needed runs into a GH Actions build train (#3366) 2021-12-25 23:05:04 +01:00
build-train.yml Github actions tweaks (#3383) 2022-01-11 15:26:28 +01:00
build-u-boot.yml Github actions tweaks (#3383) 2022-01-11 15:26:28 +01:00
bump-version.yml Manual bump (#3398) 2022-01-12 11:54:43 +01:00
forked-helper.yml Another pack of updates for Github actions (#3288) 2021-11-23 22:37:06 +01:00
labeler.yml Github actions update (#3193) 2021-10-13 17:36:18 +02:00
lint-scripts-on-merge-request.yml Varius updates to CI scripts (#3359) 2021-12-19 01:02:16 +01:00
maintain.yml Actions bugfix (#3397) 2022-01-12 09:33:35 +01:00
README.md Update Github actions scripts (#3209) 2021-11-09 18:31:48 +01:00
rebase.yml Github actions update (#3191) 2021-10-13 12:50:18 +02:00
smoke-tests.yml Add DUT smoke tests script (#3402) 2022-01-20 14:45:48 +01:00
update-docker.yml Github actions tweaks (#3383) 2022-01-11 15:26:28 +01:00
update-repository.yml Assemble needed runs into a GH Actions build train (#3366) 2021-12-25 23:05:04 +01:00

Runners setup

Common tags:

  • self-hosted
  • Linux
  • X64
  • ARM64 (4Gb memory with ZRAM_PERCENTAGE=50)
  • public (isolated runners for merge reqeusts)
  • local (local network)
  • cache (mounted cache)
  • images (present cache, good enough for making images)
  • big (16-128 cores, 64Gb SSD, 20Gb+ memory)
  • small (< 16 cores, 32Gb SSD, 4Gb memory)

Preparing GPG

use gpg1 otherwise signing fails

Preparing Runner

  • make sure to choose proper architecture

  • create startup

      sudo ./svc.sh install # install
      sudo ./svc.sh start   # start
      sudo ./svc.sh status  # check
    

Use workflows in forked repositories

forked-helper.yml workflow helper can help to run custom workflows on the forked repositories.

  1. Set ARMBIAN_SELF_DISPATCH_TOKEN secret on your repository with security_events permissions.
  2. Helper will dispatch repository_dispatch event armbian on push, release, deployment, pull_request and workflow_dispatch events. All needed event details you can find in client_payload property of the event.
  3. Create empty default branch in forked repository
  4. Create workflow with repository_dispatch in default branch.
  5. Run any need actions in this workflow.

Workflow example:

name: Test Armbian dispatch

on:
  repository_dispatch:
    types: ["armbian"]

jobs:
  show-dispatch:
    name: Show dispatch event details
    runs-on: ubuntu-latest
    steps:
      - uses: hmarr/debug-action@v2