armbian-build/.github/workflows
dependabot[bot] 1f94d714a9
build(deps): bump tj-actions/changed-files from 40 to 41 (#6089)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 40 to 41.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v40...v41)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  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>
2023-12-27 11:52:55 +01:00
..
build-artifacts-pr.yml We don't need to restart kernel recompilation upon PR text changes 2023-11-21 20:22:39 +01:00
build-board-list.yml
build-train.yml
forked-helper.yml
kernel-security-analysis-pr.yml build(deps): bump tj-actions/changed-files from 40 to 41 (#6089) 2023-12-27 11:52:55 +01:00
labeler.yml Fix automatic labeling system due to upstream breaking change (#6011) 2023-12-05 12:10:35 +01:00
labels-from-yml.yml Improve labeling system - refactor labeling logic (#5916) 2023-11-19 22:36:06 +01:00
lint-scripts-pr.yml build(deps): bump tj-actions/changed-files from 40 to 41 (#6089) 2023-12-27 11:52:55 +01:00
open-jira-ticket.yml
pr-size-labeler.yml Fix pr-size-labeler again as its still not working 2023-11-25 20:19:29 +01:00
README.md
rebase.yml build(deps): bump actions/checkout from 3 to 4 2023-09-06 13:09:07 +02:00
scorecard.yml build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 2023-12-24 09:15:42 +01:00

Runners requirements

  • big (6-16 cores, 64Gb SSD, 16Gb memory, 2Gb swap)
  • small (4 cores, 64Gb SSD, 8Gb memory, 2Gb swap)

Preparation

Adding x86 runner to your Jammy VM (check here if any changes):

$ mkdir actions-runner 
$ cd actions-runner
$ curl -o actions-runner-linux-x64-2.294.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.294.0/actions-runner-linux-x64-2.294.0.tar.gz
$ tar xzf ./actions-runner-linux-x64-2.294.0.tar.gz

Configuration

Once asked, tag your runner accordingly:

  • small
  • big
  • arm64

Start the configuration experience

$ ./config.sh --url https://github.com/armbian --token XXXXXXXXXXXXXXXXXXXXXXXXXXX

You need to get a valid token from our DevOps team to proceed.

Create startup scripts

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