38 lines
840 B
YAML
38 lines
840 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/buildx
|
|
docker run --rm --platform linux/arm64 -v /mnt/buildx:/mnt alpine:latest /bin/sh -c "
|
|
touch /mnt/README.txt
|
|
echo \"in buildx\"
|
|
ls /mnt
|
|
"
|
|
echo "out buildx"
|
|
ls /mnt
|
|
|
|
- name: Upload artifacts
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: test
|
|
path: /mnt
|