armbian-build/.github/workflows
dependabot[bot] fa3c79675a
build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1 (#6273)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](26f96dfa69...5d5d22a312)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 20:06:16 +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(deps): bump peter-evans/repository-dispatch from 2 to 3 2024-01-29 19:42:37 +01:00
build-train.yml build(deps): bump peter-evans/repository-dispatch from 2 to 3 2024-01-29 19:42:37 +01:00
forked-helper.yml build(deps): bump peter-evans/repository-dispatch from 2 to 3 2024-01-29 19:42:37 +01:00
kernel-security-analysis-pr.yml build(deps): bump tj-actions/changed-files from 41 to 42 2024-01-22 21:16:03 +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 Enable workflow_dispatch command for labels regenerate 2024-01-30 13:17:39 +01:00
lint-scripts-pr.yml build(deps): bump tj-actions/changed-files from 41 to 42 2024-01-22 21:16:03 +01:00
open-jira-ticket.yml Open a Jira ticket when GitHub issue is raised (#4887) 2023-03-02 19:09:55 +01:00
pr-size-labeler.yml Fix pr-size-labeler again as its still not working 2023-11-25 20:19:29 +01:00
README.md Update documentation for prepare self hosted runner (#4053) 2022-08-08 08:18:30 +02:00
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 4.3.0 to 4.3.1 (#6273) 2024-02-12 20:06:16 +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