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
|
54
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner-rebuild.sh
vendored
Normal file
54
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner-rebuild.sh
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
#!/usr/bin/bash
|
||||
set -ex
|
||||
|
||||
TMPDIR="$(mktemp -d)"
|
||||
|
||||
if [ -f actions-runner.Dockerfile ]; then
|
||||
MODE=1
|
||||
cp actions-runner.Dockerfile actions-runner entrypoint $TMPDIR
|
||||
cd $TMPDIR
|
||||
else
|
||||
MODE=2
|
||||
cd $TMPDIR
|
||||
wget https://raw.githubusercontent.com/zlib-ng/zlib-ng/refs/heads/develop/arch/s390/self-hosted-builder/actions-runner.Dockerfile
|
||||
wget https://raw.githubusercontent.com/zlib-ng/zlib-ng/refs/heads/develop/arch/s390/self-hosted-builder/actions-runner
|
||||
wget https://raw.githubusercontent.com/zlib-ng/zlib-ng/refs/heads/develop/arch/s390/self-hosted-builder/entrypoint
|
||||
fi
|
||||
|
||||
# Copy rpms needed to workaround VX compiler bug, ref #1852
|
||||
mkdir clang
|
||||
cp /clang-19/*.rpm clang/
|
||||
|
||||
# Stop service
|
||||
systemctl stop actions-runner || true
|
||||
|
||||
# Delete old container
|
||||
podman container rm gaplib-actions-runner || true
|
||||
|
||||
# Delete old image
|
||||
podman image rm localhost/zlib-ng/actions-runner || true
|
||||
|
||||
# Build new image
|
||||
podman build --squash -f actions-runner.Dockerfile --tag zlib-ng/actions-runner . 2>&1 | tee /var/log/actions-runner-build.log
|
||||
|
||||
# Create new container
|
||||
podman create --replace --name=gaplib-actions-runner --env-file=/etc/actions-runner --init \
|
||||
--volume=actions-runner-temp:/home/actions-runner zlib-ng/actions-runner 2>&1 | tee -a /var/log/actions-runner-build.log
|
||||
|
||||
# Start service
|
||||
systemctl start actions-runner || true
|
||||
|
||||
# Cleanup
|
||||
podman image prune -af || true
|
||||
|
||||
# Clean up tempfile
|
||||
if [ "$MODE" == "2" ] ; then
|
||||
cd $TMPDIR
|
||||
rm actions-runner.Dockerfile
|
||||
rm actions-runner
|
||||
rm entrypoint
|
||||
rm -rf clang
|
||||
cd ..
|
||||
rmdir $TMPDIR
|
||||
echo "Deleted tempfiles."
|
||||
fi
|
54
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner.Dockerfile
vendored
Normal file
54
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner.Dockerfile
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# Self-Hosted IBM Z Github Actions Runner.
|
||||
|
||||
FROM almalinux:9
|
||||
|
||||
RUN dnf update -y -q && \
|
||||
dnf install -y -q --enablerepo=crb wget git which sudo jq sed \
|
||||
cmake make automake autoconf m4 libtool ninja-build python3-pip \
|
||||
gcc gcc-c++ clang llvm-toolset glibc-all-langpacks langpacks-en \
|
||||
glibc-static libstdc++-static libstdc++-devel libxslt-devel libxml2-devel
|
||||
|
||||
RUN dnf install -y -q dotnet-sdk-8.0 && \
|
||||
echo "Using SDK - `dotnet --version`"
|
||||
|
||||
RUN cd /tmp && \
|
||||
git clone -q https://github.com/actions/runner && \
|
||||
cd runner && \
|
||||
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \
|
||||
wget https://github.com/anup-kodlekere/gaplib/raw/refs/heads/main/build-files/runner-sdk-8.patch && \
|
||||
git apply runner-sdk-8.patch && \
|
||||
sed -i'' -e /version/s/8......\"$/$8.0.100\"/ src/global.json
|
||||
|
||||
RUN cd /tmp/runner/src && \
|
||||
./dev.sh layout && \
|
||||
./dev.sh package && \
|
||||
rm -rf /root/.dotnet /root/.nuget
|
||||
|
||||
RUN useradd -c "Action Runner" -m actions-runner && \
|
||||
usermod -L actions-runner
|
||||
|
||||
RUN tar -xf /tmp/runner/_package/*.tar.gz -C /home/actions-runner && \
|
||||
chown -R actions-runner:actions-runner /home/actions-runner
|
||||
|
||||
#VOLUME /home/actions-runner
|
||||
|
||||
# Workaround: Install custom clang version to avoid compiler bug, ref #1852
|
||||
RUN mkdir /tmp/clang
|
||||
|
||||
COPY clang/*.rpm /tmp/clang
|
||||
|
||||
RUN dnf -y upgrade /tmp/clang/*.rpm && \
|
||||
rm -rf /tmp/clang
|
||||
|
||||
# Cleanup
|
||||
RUN rm -rf /tmp/runner /var/cache/dnf/* /tmp/runner.patch /tmp/global.json && \
|
||||
dnf clean all
|
||||
|
||||
USER actions-runner
|
||||
|
||||
# Scripts.
|
||||
COPY --chmod=555 entrypoint /usr/bin/
|
||||
COPY --chmod=555 actions-runner /usr/bin/
|
||||
WORKDIR /home/actions-runner
|
||||
ENTRYPOINT ["/usr/bin/entrypoint"]
|
||||
CMD ["/usr/bin/actions-runner"]
|
18
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner.service
vendored
Normal file
18
third_party/zlib-ng/arch/s390/self-hosted-builder/actions-runner.service
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Podman container: Gaplib Github Actions Runner
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
StartLimitIntervalSec=1
|
||||
RequiresMountsFor=/run/user/1001/containers
|
||||
|
||||
[Service]
|
||||
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||
Restart=always
|
||||
TimeoutStopSec=61
|
||||
ExecStart=/usr/bin/podman start gaplib-actions-runner
|
||||
ExecStop=/usr/bin/podman stop -t 30 gaplib-actions-runner
|
||||
ExecStopPost=/usr/bin/podman stop -t 10 gaplib-actions-runner
|
||||
Type=forking
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
30
third_party/zlib-ng/arch/s390/self-hosted-builder/entrypoint
vendored
Executable file
30
third_party/zlib-ng/arch/s390/self-hosted-builder/entrypoint
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Container entrypoint that waits for all spawned processes.
|
||||
#
|
||||
|
||||
set -e -u
|
||||
|
||||
# Create a FIFO and start reading from its read end.
|
||||
tempdir=$(mktemp -d "/tmp/done.XXXXXXXXXX")
|
||||
trap 'rm -r "$tempdir"' EXIT
|
||||
done="$tempdir/pipe"
|
||||
mkfifo "$done"
|
||||
cat "$done" & waiter=$!
|
||||
|
||||
# Start the workload. Its descendants will inherit the FIFO's write end.
|
||||
status=0
|
||||
if [ "$#" -eq 0 ]; then
|
||||
bash 9>"$done" || status=$?
|
||||
else
|
||||
"$@" 9>"$done" || status=$?
|
||||
fi
|
||||
|
||||
# When the workload and all of its descendants exit, the FIFO's write end will
|
||||
# be closed and `cat "$done"` will exit. Wait until it happens. This is needed
|
||||
# in order to handle SelfUpdater, which the workload may start in background
|
||||
# before exiting.
|
||||
wait "$waiter"
|
||||
|
||||
exit "$status"
|
Reference in New Issue
Block a user