sudo dnf -y update 
sudo dnf -y install curl zip unzip tar cmake ninja-build gcc-c++ git 
sudo dnf config-manager --add-repo=https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 
sudo dnf -y install dnf-plugin-releasever-adapter --repo alinux3-plus 
sudo dnf -y install docker-ce --nobest 
sudo docker -v 
sudo systemctl start docker 
sudo systemctl enable docker 

sudo systemctl restart docker
sudo chmod 666 /var/run/docker.sock


sudo yum install gcc-aarch64-linux-gnu-c++
sudo yum install gcc-aarch64-linux-gnu

遇见 Must not run with sudo

export RUNNER_ALLOW_RUNASROOT=true
 ./config.sh --url https://github.com/xxxx/deployWeb --token AGIAQ3S7N4IAHW7REWDQQP3AA7Y 

ubuntu

sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && sudo apt-get update && sudo apt-get install -y docker-ce &&
sudo apt install -y zip g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev \
        libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake make \
        libclang-dev ninja-build libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

sudo apt install gcc-aarch64-linux-gnu
sudo apt install g++-aarch64-linux-gnu

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

作为服务启动

export RUNNER_ALLOW_RUNASROOT=true 
./config.sh --url https://github.com/21307369/rustdesk --token ALNV7TWVWFPDWYYCEBERPJ3HLTDLC
sudo ./svc.sh install
sudo ./svc.sh start