Skip to content

Commit 44e3b01

Browse files
committed
Switch action for cmake and ninja
1 parent b176a33 commit 44e3b01

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed

.github/workflows/build-installer.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ jobs:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
1414

15-
- name: Set up CMake
16-
uses: jwlawson/actions-setup-cmake@v2
17-
with:
18-
cmake-version: '3.31.6'
1915

20-
- name: Setup Ninja
21-
uses: ashutoshvarma/setup-ninja@master
16+
- name: Setup CMake
17+
uses: lukka/get-cmake@latest
18+
with:
19+
cmakeVersion: '3.31.6'
20+
ninjaVersion: '1.12.1'
2221

2322
- name: Install NSIS
2423
run: choco install nsis -y

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
cmake_minimum_required(VERSION 2.6)
22
project(spotiamp)
33

4+
if(NOT MSVC)
5+
message(FATAL_ERROR "This project requires the Microsoft Visual C++ (MSVC) compiler.")
6+
endif()
7+
48
set(SPOTIAMP_SRCS
59
com_ptr.h
610
commands.h

CMakePresets.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": 3,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 31,
6+
"patch": 6
7+
},
8+
"configurePresets": [
9+
{
10+
"name": "default",
11+
"hidden": true,
12+
"generator": "Ninja",
13+
"binaryDir": "${sourceDir}/build",
14+
"cacheVariables": {
15+
"CMAKE_BUILD_TYPE": "Release"
16+
}
17+
},
18+
{
19+
"name": "ninja-release",
20+
"inherits": [ "default" ],
21+
"description": "Ninja Release",
22+
"cacheVariables": {
23+
"CMAKE_BUILD_TYPE": "Release"
24+
}
25+
}
26+
]
27+
}

vcpkg.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "spotiamp",
3+
"version": "1.1.0",
4+
"description": "A Winamp-style Spotify client.",
5+
"dependencies": []
6+
}

0 commit comments

Comments
 (0)