Skip to content

Use full path for cmake_strip #22

Use full path for cmake_strip

Use full path for cmake_strip #22

Workflow file for this run

name: macOS Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
arch: [x86_64, arm64]
steps:
- uses: actions/checkout@master
- name: Prepare
run: |
brew install cmake wget automake libtool autoconf
- name: Build Dependencies
run: |
cd scripts
chmod +x build_deps.sh
./build_deps.sh
cd ..
- name: Build for ${{ matrix.arch }}
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
cmake --build build -- -j$(sysctl -n hw.ncpu)
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
name: xmrig-${{ matrix.arch }}
path: build/xmrigMiner
- name: Bundle Artifacts
run: |
mkdir -p bundle
cp src/config.json build/xmrigMiner build/xmrigDaemon bundle/
tar -czvf xmrig-${{ matrix.arch }}.tar.gz -C bundle .
- name: Upload Bundle
uses: actions/upload-artifact@master
with:
name: xmrig-bundle-${{ matrix.arch }}
path: xmrig-${{ matrix.arch }}.tar.gz