mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 08:46:52 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](08c6903cd8...1af3b93b68)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
92 lines
2.7 KiB
YAML
92 lines
2.7 KiB
YAML
name: windows
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
matrix:
|
|
# windows-2022 has MSVC 2022 installed:
|
|
# https://github.com/actions/virtual-environments.
|
|
os: [windows-2022]
|
|
platform: [Win32, x64]
|
|
toolset: [v142]
|
|
standard: [14, 17, 20]
|
|
shared: ["", -DBUILD_SHARED_LIBS=ON]
|
|
build_type: [Debug, Release]
|
|
exclude:
|
|
- { toolset: v142, standard: 14 }
|
|
- { platform: Win32, standard: 14 }
|
|
- { platform: Win32, standard: 20 }
|
|
- { platform: x64, standard: 14, shared: -DBUILD_SHARED_LIBS=ON }
|
|
- { platform: x64, standard: 20, shared: -DBUILD_SHARED_LIBS=ON }
|
|
include:
|
|
- os: windows-2022
|
|
platform: x64
|
|
toolset: v143
|
|
build_type: Debug
|
|
standard: 20
|
|
|
|
steps:
|
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
|
|
- name: Set timezone
|
|
run: tzutil /s "FLE Standard Time"
|
|
|
|
- name: Create Build Environment
|
|
run: cmake -E make_directory ${{runner.workspace}}/build
|
|
|
|
- name: Configure
|
|
# Use a bash shell for $GITHUB_WORKSPACE.
|
|
shell: bash
|
|
working-directory: ${{runner.workspace}}/build
|
|
run: |
|
|
cmake -A ${{matrix.platform}} -T ${{matrix.toolset}} \
|
|
-DCMAKE_CXX_STANDARD=${{matrix.standard}} \
|
|
${{matrix.shared}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
|
|
$GITHUB_WORKSPACE
|
|
|
|
- name: Build
|
|
working-directory: ${{runner.workspace}}/build
|
|
run: |
|
|
$threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
|
|
cmake --build . --config ${{matrix.build_type}} --parallel $threads
|
|
|
|
- name: Test
|
|
working-directory: ${{runner.workspace}}/build
|
|
run: ctest -C ${{matrix.build_type}} -V
|
|
env:
|
|
CTEST_OUTPUT_ON_FAILURE: True
|
|
|
|
mingw:
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
strategy:
|
|
matrix:
|
|
sys: [ mingw64, ucrt64 ]
|
|
steps:
|
|
- name: Set timezone
|
|
run: tzutil /s "FLE Standard Time"
|
|
shell: cmd
|
|
- uses: msys2/setup-msys2@40677d36a502eb2cf0fb808cc9dec31bf6152638 # v2.28.0
|
|
with:
|
|
release: false
|
|
msystem: ${{matrix.sys}}
|
|
pacboy: cc:p cmake:p ninja:p lld:p
|
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
- name: Configure
|
|
run: cmake -B ../build -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug
|
|
env: { LDFLAGS: -fuse-ld=lld }
|
|
- name: Build
|
|
run: cmake --build ../build
|
|
- name: Test
|
|
run: ctest -j `nproc` --test-dir ../build
|
|
env:
|
|
CTEST_OUTPUT_ON_FAILURE: True
|