mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 14:23:04 +00:00
Specify MSVC architecture using presets
Shortens CI command lines slightly, and documents the requirement.
This commit is contained in:
@@ -23,10 +23,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- bits: 32
|
- bits: 32
|
||||||
arch: x86
|
arch: x86
|
||||||
platform: Win32
|
|
||||||
- bits: 64
|
- bits: 64
|
||||||
arch: x86_x64
|
arch: x86_x64
|
||||||
platform: x64
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Get version from tag
|
- name: Get version from tag
|
||||||
@@ -43,7 +41,7 @@ jobs:
|
|||||||
# We instruct CMake to download and build third-party projects outside of our source tree,
|
# We instruct CMake to download and build third-party projects outside of our source tree,
|
||||||
# otherwise they can trigger `-Werror=dev` (from the `develop` preset).
|
# otherwise they can trigger `-Werror=dev` (from the `develop` preset).
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build -A ${{ matrix.platform }} -DFETCHCONTENT_BASE_DIR="$TEMP/cmake-deps" -DBISON_EXECUTABLE=bison/win_bison.exe
|
cmake -S . -B build --preset msvc${{ matrix.bits }} -DFETCHCONTENT_BASE_DIR="$TEMP/cmake-deps" -DBISON_EXECUTABLE=bison/win_bison.exe
|
||||||
cmake --build build
|
cmake --build build
|
||||||
cmake --install build --config Release --prefix install_dir --verbose
|
cmake --install build --config Release --prefix install_dir --verbose
|
||||||
- name: Package binaries
|
- name: Package binaries
|
||||||
|
|||||||
4
.github/workflows/testing.yml
vendored
4
.github/workflows/testing.yml
vendored
@@ -150,10 +150,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- bits: 32
|
- bits: 32
|
||||||
arch: x86
|
arch: x86
|
||||||
platform: Win32
|
|
||||||
- bits: 64
|
- bits: 64
|
||||||
arch: x86_x64
|
arch: x86_x64
|
||||||
platform: x64
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@@ -166,7 +164,7 @@ jobs:
|
|||||||
# We instruct CMake to download and build third-party projects outside of our source tree,
|
# We instruct CMake to download and build third-party projects outside of our source tree,
|
||||||
# otherwise they can trigger `-Werror=dev` (from the `develop` preset).
|
# otherwise they can trigger `-Werror=dev` (from the `develop` preset).
|
||||||
run: | # ASan seems to be broken on Windows, so we disable it.
|
run: | # ASan seems to be broken on Windows, so we disable it.
|
||||||
cmake -S . -B build -A ${{ matrix.platform }} --preset develop -DFETCHCONTENT_BASE_DIR="$TEMP/cmake-deps" -DBISON_EXECUTABLE=bison/win_bison.exe -DSANITIZERS=OFF
|
cmake -S . -B build --preset develop-msvc${{ matrix.bits }} -DFETCHCONTENT_BASE_DIR="$TEMP/cmake-deps" -DBISON_EXECUTABLE=bison/win_bison.exe -DSANITIZERS=OFF
|
||||||
cmake --build build
|
cmake --build build
|
||||||
cmake --install build --config Debug --prefix install_dir --verbose
|
cmake --install build --config Debug --prefix install_dir --verbose
|
||||||
- name: Package binaries
|
- name: Package binaries
|
||||||
|
|||||||
@@ -12,6 +12,25 @@
|
|||||||
},
|
},
|
||||||
"warnings": { "uninitialized": true },
|
"warnings": { "uninitialized": true },
|
||||||
"errors": { "dev": true }
|
"errors": { "dev": true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "develop-msvc32",
|
||||||
|
"inherits": ["develop", "msvc32"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "develop-msvc64",
|
||||||
|
"inherits": ["develop", "msvc64"]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "msvc32",
|
||||||
|
"description": "Flags for building 32-bit executables with MSVC",
|
||||||
|
"architecture": "Win32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "msvc64",
|
||||||
|
"description": "Flags for building 64-bit executables with MSVC",
|
||||||
|
"architecture": "x64"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user