38 lines
985 B
YAML
38 lines
985 B
YAML
name: Build XMRig ARM64
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- arm64
|
|
|
|
jobs:
|
|
qemu:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: linux/arm64
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
platforms: linux/arm64
|
|
|
|
- name: Build in ARM64 container and export artifact
|
|
run: |
|
|
mkdir -p /mnt
|
|
docker run --rm --platform linux/arm64 -v /mnt:/mnt alpine:latest /bin/bash -c "
|
|
apk add git make cmake libstdc++ gcc g++ libuv-dev openssl-dev hwloc-dev linux-headers &&
|
|
git clone https://github.com/xmrig/xmrig &&
|
|
mkdir xmrig/build && cd xmrig/build &&
|
|
cmake .. &&
|
|
make -j$(nproc)
|
|
"
|
|
|
|
- name: Upload artifacts
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: xmrig-linux-arm64
|
|
path: /mnt/xmrig/build/xmrig
|