Improve macos ci
This commit is contained in:
parent
f4fd6dfd19
commit
5122db5315
|
@ -216,6 +216,8 @@ jobs:
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
|
name: macOS
|
||||||
|
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -226,19 +228,25 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
brew install sdl2
|
brew install sdl2
|
||||||
|
|
||||||
|
- name: Cache cmake build
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: build
|
||||||
|
key: macos-cmake-v1
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -B build/macos -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
cmake -B build -D CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/macos -j $(sysctl -n hw.physicalcpu) --target package
|
cmake --build build -j $(sysctl -n hw.physicalcpu) --target package
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: fallout2-ce-macos
|
name: fallout2-ce-macos.dmg
|
||||||
path: build/macos/_CPack_Packages/Darwin/DragNDrop/fallout2-ce/fallout2-ce.dmg
|
path: build/_CPack_Packages/Darwin/DragNDrop/fallout2-ce/fallout2-ce.dmg
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
|
|
Loading…
Reference in New Issue