armbian-build/.github/workflows
Igor Pečovnik 07d7d1a077
Remove deprecated functionality (#4034)
* Remove deprecated functionality

Since we are storing version number outside, we don't neet to deal with month cache rebuild here. Removing the code

* Change cron to more appropriate date

We tend to make releases by the end of the month, so cache rebuild in the middle is better then at the start of the month
2022-07-31 11:28:44 +02:00
..
build-deskktop-pr.yml Action scripts cleaning and functional testing (#3914) 2022-06-19 12:37:53 +02:00
build-images.yml Github Actions fine tuning (#3923) 2022-06-23 08:29:24 +02:00
build-kernel-pr.yml Action scripts cleaning and functional testing (#3914) 2022-06-19 12:37:53 +02:00
build-train.yml Move schedule checking deeper (#3933) 2022-06-25 18:34:46 +02:00
build-u-boot.yml Several small fixes to CI scripting (#3905) 2022-06-18 23:53:45 +02:00
bump-version.yml Several small fixes to CI scripting (#3905) 2022-06-18 23:53:45 +02:00
check-integrity.yml Action script for checking integrity of images (#3915) 2022-06-19 19:21:39 +02:00
cleanup.yml Bump igorjs/gh-actions-clean-workflow from 2 to 3 (#3987) 2022-07-13 15:06:16 +02:00
forked-helper.yml Bump peter-evans/repository-dispatch from 1 to 2 (#3891) 2022-06-11 18:16:04 +02:00
labeler.yml Bump actions/labeler from 3 to 4 (#3889) 2022-06-11 18:15:18 +02:00
lint-scripts-pr.yml Several small fixes to CI scripting (#3905) 2022-06-18 23:53:45 +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 Rebase action needs write access (#3920) 2022-06-20 15:16:33 +02:00
scorecard.yml Bump ossf/scorecard-action from 1.1.1 to 1.1.2 (#3962) 2022-07-09 11:36:26 +02:00
smoke-tests.yml Several small fixes to CI scripting (#3905) 2022-06-18 23:53:45 +02:00
update-cache.yml Remove deprecated functionality (#4034) 2022-07-31 11:28:44 +02:00
update-docker.yml Several small fixes to CI scripting (#3905) 2022-06-18 23:53:45 +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