aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-26 12:23:19 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-26 12:23:19 +0200
commite4a0432383331e013808a97b7c24707e4ddc4726 (patch)
tree3ef4465be03bc7b92a0b048f02f76475045404b6 /.github
parent105732dde10b317a81d5a10a3f66b315d6f85015 (diff)
downloadsrdwm-e4a0432383331e013808a97b7c24707e4ddc4726.tar.gz
srdwm-e4a0432383331e013808a97b7c24707e4ddc4726.zip
Initial Commit
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/macos.yml34
-rw-r--r--.github/workflows/windows.yml46
2 files changed, 80 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 0000000..08de482
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,34 @@
+name: macOS (Cocoa + Ninja)
+
+on:
+ push:
+ branches: [ main, master ]
+ pull_request:
+ branches: [ main, master ]
+
+jobs:
+ build:
+ runs-on: macos-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install dependencies
+ run: |
+ brew update
+ brew install ninja lua
+
+ - name: Configure (Release, Ninja)
+ run: |
+ cmake -S . -B build-mac \
+ -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release
+
+ - name: Build (Release)
+ run: cmake --build build-mac -j
+
+ - name: Upload artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: SRDWM-macos-Release
+ path: build-mac/SRDWM
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000..dbbe52d
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,46 @@
+name: Windows (MSVC + Ninja)
+
+on:
+ push:
+ branches: [ main, master ]
+ pull_request:
+ branches: [ main, master ]
+
+jobs:
+ build:
+ runs-on: windows-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install Ninja
+ run: choco install ninja --no-progress -y
+
+ - name: Set up vcpkg
+ shell: bash
+ run: |
+ git clone https://github.com/microsoft/vcpkg.git
+ ./vcpkg/bootstrap-vcpkg.sh
+
+ - name: Install dependencies (Lua 5.4)
+ shell: bash
+ run: |
+ ./vcpkg/vcpkg install lua:x64-windows
+
+ - name: Configure (Release, Ninja, MSVC)
+ shell: bash
+ run: |
+ cmake -S . -B build-win \
+ -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
+
+ - name: Build (Release)
+ shell: bash
+ run: cmake --build build-win -j
+
+ - name: Upload artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: SRDWM-windows-Release
+ path: build-win/SRDWM.exe