All checks were successful
Build XMRig / build-xmrig-linux-static (push) Successful in 8m49s
44 lines
1018 B
YAML
44 lines
1018 B
YAML
name: Build XMRig
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-xmrig-linux-static:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
-
|
|
name: Checkout code
|
|
uses: actions/checkout@v3
|
|
# -
|
|
# name: Set up QEMU
|
|
# uses: docker/setup-qemu-action@v3
|
|
# -
|
|
# name: Set up Docker Buildx
|
|
# uses: docker/setup-buildx-action@v3
|
|
# -
|
|
# name: Build and push
|
|
# uses: docker/build-push-action@v6
|
|
# with:
|
|
# push: false
|
|
# tags: xmrig:latest
|
|
-
|
|
name: Build XMRig
|
|
run: |
|
|
docker build --no-cache -t xmrig:latest .
|
|
id=$(docker create xmrig:latest)
|
|
docker cp $id:/xmrig/build/xmrig - > xmrig.tar
|
|
tar -xvf xmrig.tar
|
|
docker rm -v $id
|
|
-
|
|
name: Archive artifacts
|
|
# uses: actions/upload-artifact@v4
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: xmrig-linux-static
|
|
path: xmrig
|