armbian-build/.github/workflows
dependabot[bot] fa4781b7c8
Bump styfle/cancel-workflow-action from 0.10.1 to 0.11.0 (#4300)
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.10.1...0.11.0)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 09:23:47 +02:00
..
build-all-desktops.yml Small fixes and cleanup for action scripts (#4085) 2022-08-19 20:49:18 +02:00
build-images.yml Bump styfle/cancel-workflow-action from 0.10.1 to 0.11.0 (#4300) 2022-10-18 09:23:47 +02:00
build-kernel-pr.yml Fix wrong label set for initiating CI at PR (#4093) 2022-08-20 08:50:08 +02:00
build-train.yml Use different runners (#4143) 2022-09-05 11:13:13 +02:00
build-u-boot.yml Clean GitHub actions (#4065) 2022-08-12 14:29:31 +02:00
bump-version.yml Clean GitHub actions (#4065) 2022-08-12 14:29:31 +02:00
check-integrity.yml Clean GitHub actions (#4065) 2022-08-12 14:29:31 +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
README.md Update documentation for prepare self hosted runner (#4053) 2022-08-08 08:18:30 +02:00
rebase.yml Clean GitHub actions (#4065) 2022-08-12 14:29:31 +02:00
scorecard.yml Bump ossf/scorecard-action from 2.0.3 to 2.0.4 (#4257) 2022-10-04 06:40:15 +02:00
smoke-tests.yml Small fixes and cleanup for action scripts (#4085) 2022-08-19 20:49:18 +02:00
update-docker.yml Update update-docker.yml (#4137) 2022-09-01 15:16:34 +02: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