mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-05-23 15:02:12 -04:00
4c6e68aa8a
* cmake: Correctly set PROJECT_VERSION This needs CI to adjust Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Log version Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Show version and debug state Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Log debug mode toggling Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Finish version string Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Update CMakeLists.txt * Update CMakeLists.txt * Try to fix execute_process() from within CI Signed-off-by: Thomas Rohloff <v10lator@myway.de> * CI: Checkout with tags Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Fix PR CIs, too Signed-off-by: Thomas Rohloff <v10lator@myway.de> * Add config button for version Signed-off-by: Thomas Rohloff <v10lator@myway.de> --------- Signed-off-by: Thomas Rohloff <v10lator@myway.de> Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: MacOS Validation
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-tags: true
|
|
submodules: recursive
|
|
- name: Install dependencies
|
|
run: brew install ninja cmake
|
|
- name: Install vcpkg
|
|
uses: lukka/run-vcpkg@v11.5
|
|
with:
|
|
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
|
|
- name: Build
|
|
run: |
|
|
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
|
|
cmake --build build-cmake -j
|
|
- name: Create Package
|
|
run: |
|
|
mkdir spaghetti-release
|
|
mv build-cmake/Spaghettify spaghetti-release/
|
|
- name: Publish packaged artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: spaghetti-mac-universal
|
|
path: spaghetti-release
|
|
retention-days: 1
|