forked from such-gitea/wownero-lws
Add .gitea/workflows/build.yaml
This commit is contained in:
31
.gitea/workflows/build.yaml
Normal file
31
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Build Wowlet
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-macos:
|
||||
runs-on: macos-latest # Runs on your Mac Mini
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive # Wowlet/Wownero usually need submodules
|
||||
|
||||
- name: Prepare Environment
|
||||
run: |
|
||||
echo "Checking dependency versions..."
|
||||
cmake --version
|
||||
qmake --version || echo "QMake found via brew"
|
||||
|
||||
- name: Build macOS
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
# Standard CMake build for Mac
|
||||
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt@5) -DCMAKE_BUILD_TYPE=Release
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: wowlet-macos
|
||||
path: build/wowlet.app
|
||||
Reference in New Issue
Block a user