commit 2ec7c02d22d3b854752a1ab46b8d58aea56398d5 Author: Liam Chan Date: Wed Sep 4 11:52:20 2024 -0400 Add .gitea/workflows/build-xmrig.yaml diff --git a/.gitea/workflows/build-xmrig.yaml b/.gitea/workflows/build-xmrig.yaml new file mode 100644 index 0000000..be2a4e1 --- /dev/null +++ b/.gitea/workflows/build-xmrig.yaml @@ -0,0 +1,32 @@ +name: Build XMRig + +on: + push: + workflow_dispatch: + schedule: + - cron: 0 15 * * 3 + +jobs: + linux-amd64: + runs-on: ubuntu-latest + container: alpine:3.20 + steps: + - name: Fetch sources + uses: actions/checkout@v4 + with: + repository: xmrig/xmrig + + - name: Install dependencies + run: | + apk add git make cmake libstdc++ gcc g++ automake libtool autoconf linux-headers + + - name: Build static libraries + run: | + cd scripts && ./build_deps.sh + + - name: Build binary + run: | + mkdir build && cd build + #cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON -DWITH_EMBEDDED_CONFIG=ON + cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON + make -j$(nproc)