Add .gitea/workflows/build-xmrig.yaml
Some checks failed
Build XMRig / linux-amd64 (push) Failing after 5s
Some checks failed
Build XMRig / linux-amd64 (push) Failing after 5s
This commit is contained in:
commit
2ec7c02d22
32
.gitea/workflows/build-xmrig.yaml
Normal file
32
.gitea/workflows/build-xmrig.yaml
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user