/arc-system

Primary LanguageGoMIT LicenseMIT

incus launch images:ubuntu/22.04 ubuntu2204
incus exec ubuntu2204 bash

apt-get install build-essential git automake cmake curl ca-certificates
apt-get clean

mkdir actions-runner && cd actions-runner
# see https://github.com/actions/runner/releases/latest
curl -O -L https://github.com/actions/runner/releases/download/v2.320.0/actions-runner-linux-x64-2.320.0.tar.gz
tar xzf ./actions-runner-linux-x64-2.320.0.tar.gz
rm -f actions-runner-linux-x64-2.320.0.tar.gz
exit

incus stop ubuntu2204
incus publish ubuntu2204 --alias runner-ubuntu2204-x64
incus delete ubuntu2204
./arc-system create -c config.yml --set --sname ubuntu2204-x64
./arc-system run -c config.yml
name: Actions Runner Controller Demo
on:
  workflow_dispatch:

jobs:
  Explore-Runner-scale-sets:
    # You need to use the runnerScaleSetName from the config file
    runs-on: ubuntu2204-x64
    steps:
    - run: echo "🎉 This job uses runner scale set runners!"