fix: breakpad use miniz
Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
This commit is contained in:
59
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner
vendored
Executable file
59
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner
vendored
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Ephemeral runner startup script.
|
||||
#
|
||||
# Expects the following environment variables:
|
||||
#
|
||||
# - REPO=<owner>
|
||||
# - PAT_TOKEN=<github_pat_***>
|
||||
#
|
||||
|
||||
set -e -u
|
||||
|
||||
# Validate required environment variables
|
||||
if [ -z "${REPO:-}" ] || [ -z "${PAT_TOKEN:-}" ]; then
|
||||
echo "Error: REPO and/or PAT_TOKEN environment variables not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check the cached registration token.
|
||||
TOKEN_FILE=registration-token.json
|
||||
if [ -f $TOKEN_FILE ]; then
|
||||
set +e
|
||||
EXPIRES=$(jq --raw-output .EXPIRES "$TOKEN_FILE" 2>/dev/null)
|
||||
STATUS=$?
|
||||
set -e
|
||||
else
|
||||
STATUS=1
|
||||
fi
|
||||
if [[ $STATUS -ne 0 || $(date +%s) -ge $(date -d "$EXPIRES" +%s) ]]; then
|
||||
# Refresh the cached registration token.
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $PAT_TOKEN" \
|
||||
"https://api.github.com/repos/$REPO/actions/runners/registration-token" \
|
||||
-o "$TOKEN_FILE"
|
||||
fi
|
||||
|
||||
REG_TOKEN=$(jq --raw-output .token "$TOKEN_FILE")
|
||||
if [ $REG_TOKEN = "null" ]; then
|
||||
echo "Failed to get registration token"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# (Re-)register the runner.
|
||||
./config.sh remove --token "$REG_TOKEN" || true
|
||||
set -x
|
||||
./config.sh \
|
||||
--url "https://github.com/$REPO" \
|
||||
--token "$REG_TOKEN" \
|
||||
--unattended \
|
||||
--disableupdate \
|
||||
--replace \
|
||||
--labels z15 \
|
||||
--ephemeral
|
||||
|
||||
# Run one job.
|
||||
./run.sh
|
Reference in New Issue
Block a user