blob: 87e986d55539ae4e8148aa38c9272b2795d495d9 [file]
#!/bin/bash
# Copyright 2022 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Starts the GitHub actions runner in service mode.
# We don't use runsvc.sh here because it's a shell wrapper around a
# nodejs listener that calls the .NET runner program 😱 in startup mode
# and at the exit codes so it can retry if the runner is busy updating.
# We disable updating, so can avoid those layers of cruft.
set -euo pipefail
echo "Starting runner"
~runner/actions-runner/bin/Runner.Listener run --startuptype service