mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 06:45:05 +00:00
Add macOS CI
This commit is contained in:
39
.github/workflows/ci.yml
vendored
39
.github/workflows/ci.yml
vendored
@@ -148,6 +148,45 @@ jobs:
|
|||||||
name: ${{ matrix.id }}
|
name: ${{ matrix.id }}
|
||||||
path: dist/wibo
|
path: dist/wibo
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
name: Build macOS ${{ matrix.display }}
|
||||||
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- id: debug-macos
|
||||||
|
display: Debug
|
||||||
|
preset: debug-macos
|
||||||
|
build_dir: debug
|
||||||
|
- id: release-macos
|
||||||
|
display: Release
|
||||||
|
preset: release-macos
|
||||||
|
build_dir: release
|
||||||
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
brew install mingw-w64
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Build wibo
|
||||||
|
run: |
|
||||||
|
cmake --preset ${{ matrix.preset }}
|
||||||
|
cmake --build --preset ${{ matrix.preset }}
|
||||||
|
|
||||||
|
- name: Tests
|
||||||
|
run: ctest --preset ${{ matrix.preset }}
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.id }}
|
||||||
|
path: build/${{ matrix.build_dir }}/wibo
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Publish Release
|
name: Publish Release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|||||||
Reference in New Issue
Block a user