xmrig/.gitea/workflows/build-xmrig.yaml
Liam Chan 9ca5769505
Some checks failed
Build XMRig / linux-amd64 (push) Failing after 7s
Update .gitea/workflows/build-xmrig.yaml
2024-09-04 12:02:50 -04:00

34 lines
809 B
YAML

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: Install dependencies
run: |
#apk add git make cmake libstdc++ gcc g++ automake libtool autoconf linux-headers
apk add git make cmake libstdc++ gcc g++ libuv-dev openssl-dev hwloc-dev
- name: Fetch sources
run: |
git clone https://github.com/xmrig/xmrig.git
# - name: Build static libraries
# run: |
# cd xmrig/scripts && ./build_deps.sh
- name: Build binary
run: |
mkdir -p xmrig/build && cd $_
#cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON
pwd
cmake ..
make -j$(nproc)