mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-17 08:01:12 +02:00
GH Actions: use Ninja CMake generator on Windows
MSBuild does not work with CMake's CMAKE_C_COMPILER_LAUNCHER / CMAKE_CXX_COMPILER_LAUNCHER for compiler caching. Signed-off-by: Be <be@mixxx.org>
This commit is contained in:
25
.github/workflows/cmake_build.yml
vendored
25
.github/workflows/cmake_build.yml
vendored
@@ -43,13 +43,19 @@ jobs:
|
||||
|
||||
- name: Windows_32bit
|
||||
os: windows-latest
|
||||
arch: 32bit # as reported by Windows Settings > System > About
|
||||
generator: Visual Studio 16 2019
|
||||
arch: x86
|
||||
# required so CMake uses MSVC rather than MinGW
|
||||
cc: cl
|
||||
cxx: cl
|
||||
generator: Ninja
|
||||
|
||||
- name: Windows_64bit
|
||||
os: windows-latest
|
||||
arch: 64bit # as reported by Windows Settings > System > About
|
||||
generator: Visual Studio 16 2019
|
||||
arch: amd64
|
||||
# required so CMake uses MSVC rather than MinGW
|
||||
cc: cl
|
||||
cxx: cl
|
||||
generator: Ninja
|
||||
|
||||
steps:
|
||||
|
||||
@@ -63,7 +69,7 @@ jobs:
|
||||
- name: Environment
|
||||
run: |
|
||||
source "scripts/ci/environment.sh"
|
||||
|
||||
|
||||
- name: Install Apple codesigning certificates
|
||||
uses: apple-actions/import-codesign-certs@v1
|
||||
if: startswith( matrix.config.os, 'macos' ) && github.event_name == 'push' && github.repository_owner == 'audacity'
|
||||
@@ -71,6 +77,13 @@ jobs:
|
||||
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
|
||||
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
||||
|
||||
# required for CMake to find Ninja
|
||||
- name: "[Windows] Set up MSVC Developer Command Prompt"
|
||||
if: runner.os == 'Windows'
|
||||
uses: seanmiddleditch/gha-setup-vsdevenv@v3
|
||||
with:
|
||||
arch: ${{ matrix.config.arch }}
|
||||
|
||||
- name: Cache for .conan
|
||||
id: cache-conan
|
||||
uses: actions/cache@v2
|
||||
@@ -88,6 +101,8 @@ jobs:
|
||||
APPLE_CODESIGN_IDENTITY: ${{ secrets.APPLE_CODESIGN_IDENTITY }}
|
||||
APPLE_NOTARIZATION_USER_NAME: ${{ secrets.APPLE_NOTARIZATION_USER_NAME }}
|
||||
APPLE_NOTARIZATION_PASSWORD: ${{ secrets.APPLE_NOTARIZATION_PASSWORD }}
|
||||
CC: ${{ matrix.config.cc }}
|
||||
CXX: ${{ matrix.config.cxx }}
|
||||
run: |
|
||||
exec bash "scripts/ci/configure.sh"
|
||||
|
||||
|
Reference in New Issue
Block a user