#3.4.9 #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |