armbian-build/.github/workflows
dependabot[bot] d7a43cab4e
Bump actions/upload-artifact from 2 to 3 (#3888)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-11 18:13:51 +02:00
..
build-cache.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
build-images.yml Bump actions/upload-artifact from 2 to 3 (#3888) 2022-06-11 18:13:51 +02:00
build-kernel-on-merge-request.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
build-test-image-docker.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
build-train.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
build-u-boot.yml Bump actions/upload-artifact from 2 to 3 (#3888) 2022-06-11 18:13:51 +02:00
bump-version.yml Bump actions/upload-artifact from 2 to 3 (#3888) 2022-06-11 18:13:51 +02:00
forked-helper.yml Another pack of updates for Github actions (#3288) 2021-11-23 22:37:06 +01:00
labeler.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
lint-scripts-on-merge-request.yml Bump actions/upload-artifact from 2 to 3 (#3888) 2022-06-11 18:13:51 +02:00
maintain.yml Bump actions/upload-artifact from 2 to 3 (#3888) 2022-06-11 18:13:51 +02:00
README.md Update Github actions scripts (#3209) 2021-11-09 18:31:48 +01:00
rebase.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
smoke-tests.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
update-docker.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02:00
update-repository.yml chore: Set permissions for GitHub actions (#3880) 2022-06-11 18:04:11 +02: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