Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 2.39 KB

README_collected.md

File metadata and controls

81 lines (61 loc) · 2.39 KB

Github selfhosted runner

Prepare github

https://github.com/hmaerki/experiment_microoctopus/settings/actions/runners/new

Prepare runner

mkdir actions-runner && cd actions-runner
curl -o actions-runner-linux-x64-2.321.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-linux-x64-2.321.0.tar.gz
echo "ba46ba7ce3a4d7236b16fbe44419fb453bc08f866b24f04d549ec89f1722a29e  actions-runner-linux-x64-2.321.0.tar.gz" | shasum -a 256 -c
tar xzf ./actions-runner-linux-x64-2.321.0.tar.gz

./config.sh --url https://github.com/octoprobe/testbed_micropython_runner --token xxx
./run.sh

Config the runner

Group: Default (should be octoprobe) Name of runner: ch-wetzikon-1 labels: octoprobe,testbed_micropython work folder: _work

Install testbed_micropython

Workflow

.github/workflows/manual.yml

# This is a basic workflow that is manually triggered

name: Manual workflow

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
  workflow_dispatch:
    # Inputs the workflow accepts.
    inputs:
      name:
        # Friendly description to be shown in the UI instead of 'name'
        description: 'Person to greet'
        # Default value if no value is explicitly provided
        default: 'World'
        # Input has to be provided for the workflow to run
        required: true
        # The data type of the input
        type: string

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "greet"
  greet:
    # The type of runner that the job will run on
    runs-on: octoprobe

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
    # Runs a single command using the runners shell
    - name: Send greeting
      run: echo "Hello ${{ inputs.name }}"