Skip to content

Commit 09050dc

Browse files
committed
feat: Restrict project to Windows and Linux only
1 parent 0227a45 commit 09050dc

3 files changed

Lines changed: 5 additions & 51 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ jobs:
4343
generator: "Visual Studio 17 2022"
4444
cmake_options: ""
4545

46-
# macOS with Clang
47-
- os: macos-12
48-
compiler: clang
49-
version: apple
50-
build_type: Release
51-
generator: "Unix Makefiles"
52-
cmake_options: ""
5346

5447
steps:
5548
- name: Checkout repository
@@ -95,12 +88,6 @@ jobs:
9588
with:
9689
vs-version: '[17.0,18.0)'
9790

98-
# ---------------- macOS setup ----------------
99-
- name: Install dependencies (macOS)
100-
if: startsWith(matrix.os, 'macos')
101-
run: |
102-
brew update
103-
brew install cmake ninja ccache
10491

10592
# ---------------- Common build steps ----------------
10693
- name: Clear CMake cache

.github/workflows/release.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
name: windows
3636
extension: ".exe"
3737

38-
- os: macos-12
39-
name: macos
40-
extension: ""
4138

4239
steps:
4340
- name: Checkout repository
@@ -88,12 +85,6 @@ jobs:
8885
run: |
8986
choco install cmake ninja ccache zip --no-progress
9087
91-
# ---------------- macOS setup ----------------
92-
- name: Install dependencies (macOS)
93-
if: matrix.os == 'macos-12'
94-
run: |
95-
brew update
96-
brew install cmake ninja ccache create-dmg
9788
9889
- name: Clear CMake cache
9990
run: |
@@ -146,19 +137,6 @@ jobs:
146137
7z a -tzip "${{ steps.build-env.outputs.package-dir }}/$PACKAGE_NAME.zip" \
147138
bin/*.exe bin/*.dll share/ || \
148139
powershell -Command "Compress-Archive -Path bin/*,share/ -DestinationPath '${{ steps.build-env.outputs.package-dir }}/$PACKAGE_NAME.zip'"
149-
elif [ "${{ matrix.os }}" = "macos-12" ]; then
150-
# macOS: Create DMG package
151-
create-dmg \
152-
--volname "ChainedDecos ${{ steps.version.outputs.version }}" \
153-
--window-pos 200 120 \
154-
--window-size 800 400 \
155-
--icon-size 100 \
156-
--app-drop-link 600 185 \
157-
"${{ steps.build-env.outputs.package-dir }}/$PACKAGE_NAME.dmg" \
158-
bin/ share/ || \
159-
# Fallback to tar.gz
160-
tar -czf "${{ steps.build-env.outputs.package-dir }}/$PACKAGE_NAME.tar.gz" \
161-
-C bin . -C ../share .
162140
else
163141
# Linux: Create tar.gz package
164142
tar -czf "${{ steps.build-env.outputs.package-dir }}/$PACKAGE_NAME.tar.gz" \
@@ -172,7 +150,6 @@ jobs:
172150
path: |
173151
${{ steps.build-env.outputs.package-dir }}/*.zip
174152
${{ steps.build-env.outputs.package-dir }}/*.tar.gz
175-
${{ steps.build-env.outputs.package-dir }}/*.dmg
176153
retention-days: 30
177154

178155
- name: Create GitHub release (main job only)
@@ -182,7 +159,6 @@ jobs:
182159
files: |
183160
${{ steps.build-env.outputs.package-dir }}/*.zip
184161
${{ steps.build-env.outputs.package-dir }}/*.tar.gz
185-
${{ steps.build-env.outputs.package-dir }}/*.dmg
186162
generate_release_notes: true
187163
draft: false
188164
prerelease: ${{ contains(steps.version.outputs.version, 'alpha') || contains(steps.version.outputs.version, 'beta') || contains(steps.version.outputs.version, 'rc') }}

.github/workflows/test-workflow.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
compiler: msvc
3232
version: 2022
3333

34-
- os: macos-12
35-
compiler: clang
36-
version: apple
3734

3835
steps:
3936
- name: Checkout repository
@@ -78,12 +75,6 @@ jobs:
7875
with:
7976
vs-version: '[17.0,18.0)'
8077

81-
# ---------------- macOS setup ----------------
82-
- name: Install dependencies (macOS)
83-
if: startsWith(matrix.os, 'macos')
84-
run: |
85-
brew update
86-
brew install cmake ninja ccache
8778

8879
- name: Clear CMake cache
8980
run: |
@@ -155,8 +146,8 @@ jobs:
155146
run: |
156147
echo "🔍 Running static analysis..."
157148
158-
# Check for common issues in source files
159-
if [ "${{ matrix.os }}" != "windows-2022" ]; then
149+
# Check for common issues in source files (Ubuntu only)
150+
if [ "${{ matrix.os }}" = "ubuntu-22.04" ]; then
160151
# Count warnings in build output
161152
echo "📊 Build completed successfully"
162153
@@ -165,8 +156,8 @@ jobs:
165156
find src -name "*.cpp" -o -name "*.h" | wc -l | xargs echo "Found files to analyze:"
166157
fi
167158
168-
- name: Generate coverage report (Ubuntu only)
169-
if: startsWith(matrix.os, 'ubuntu') && matrix.compiler == 'gcc'
159+
- name: Generate coverage report (Ubuntu GCC only)
160+
if: matrix.os == 'ubuntu-22.04' && matrix.compiler == 'gcc'
170161
run: |
171162
echo "📊 Generating coverage report..."
172163
# Coverage would be generated here if we had tests with coverage instrumentation
@@ -184,7 +175,7 @@ jobs:
184175

185176
- name: Upload coverage report (Ubuntu GCC only)
186177
uses: actions/upload-artifact@v4
187-
if: startsWith(matrix.os, 'ubuntu') && matrix.compiler == 'gcc' && always()
178+
if: matrix.os == 'ubuntu-22.04' && matrix.compiler == 'gcc' && always()
188179
with:
189180
name: coverage-report-${{ matrix.os }}-${{ matrix.compiler }}
190181
path: |

0 commit comments

Comments
 (0)