armbian-build/.github/workflows
dependabot[bot] 9c714ff596
Bump cirrus-actions/rebase from 1.7 to 1.8 (#4592)
Bumps [cirrus-actions/rebase](https://github.com/cirrus-actions/rebase) from 1.7 to 1.8.
- [Release notes](https://github.com/cirrus-actions/rebase/releases)
- [Commits](https://github.com/cirrus-actions/rebase/compare/1.7...1.8)

---
updated-dependencies:
- dependency-name: cirrus-actions/rebase
  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-12-20 10:35:51 +01:00
..
build-all-desktops.yml Small fixes and cleanup for action scripts (#4085) 2022-08-19 20:49:18 +02:00
build-images.yml Switch to external workflow for making index (#4548) 2022-12-09 11:06:28 +01:00
build-kernel-pr.yml Adjust action due to label change (#4564) 2022-12-14 01:43:15 +01:00
build-train.yml Improve build train logic - bump version first (#4542) 2022-12-08 15:15:03 +01:00
build-u-boot.yml
bump-version.yml
check-integrity.yml
forked-helper.yml
labeler.yml
lint-scripts-pr.yml Bump tj-actions/changed-files from 34 to 35 (#4591) 2022-12-20 10:35:38 +01:00
README.md
rebase.yml Bump cirrus-actions/rebase from 1.7 to 1.8 (#4592) 2022-12-20 10:35:51 +01:00
scorecard.yml Bump ossf/scorecard-action from 2.0.4 to 2.0.6 (#4333) 2022-10-25 11:27:32 +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