mirror of
https://git.tukaani.org/xz.git
synced 2025-12-11 16:08:45 +00:00
139 lines
3.0 KiB
YAML
139 lines
3.0 KiB
YAML
# SPDX-License-Identifier: 0BSD
|
|
|
|
# Author: Lasse Collin
|
|
|
|
name: Windows-MSVC
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
MSVC:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ windows-latest ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Configure Win32
|
|
run: >
|
|
cmake
|
|
-A Win32
|
|
-B build-msvc-win32
|
|
|
|
- name: Build Win32 Debug
|
|
run: >
|
|
cmake
|
|
--build build-msvc-win32
|
|
--config Debug
|
|
|
|
- name: Test Win32 Debug
|
|
run: >
|
|
ctest
|
|
--test-dir build-msvc-win32
|
|
--build-config Debug
|
|
--output-on-failure
|
|
|
|
- name: Build Win32 Release
|
|
run: >
|
|
cmake
|
|
--build build-msvc-win32
|
|
--config Release
|
|
|
|
# This fails with VS 2019 without b5a5d9e3f702.
|
|
- name: Test Win32 Release
|
|
run: >
|
|
ctest
|
|
--test-dir build-msvc-win32
|
|
--build-config Release
|
|
--output-on-failure
|
|
|
|
- name: Configure x64
|
|
run: >
|
|
cmake
|
|
-A x64
|
|
-B build-msvc-x64
|
|
|
|
- name: Build x64 Debug
|
|
run: >
|
|
cmake
|
|
--build build-msvc-x64
|
|
--config Debug
|
|
|
|
- name: Test x64 Debug
|
|
run: >
|
|
ctest
|
|
--test-dir build-msvc-x64
|
|
--build-config Debug
|
|
--output-on-failure
|
|
|
|
- name: Build x64 Release
|
|
run: >
|
|
cmake
|
|
--build build-msvc-x64
|
|
--config Release
|
|
|
|
- name: Test x64 Release
|
|
run: >
|
|
ctest
|
|
--test-dir build-msvc-x64
|
|
--build-config Release
|
|
--output-on-failure
|
|
|
|
- name: Configure ClangCL x64
|
|
run: >
|
|
cmake
|
|
-T ClangCL
|
|
-A x64
|
|
-B build-clangcl-x64
|
|
-DCMAKE_C_FLAGS="
|
|
-Wno-cast-align
|
|
-Wno-cast-qual
|
|
-Wno-covered-switch-default
|
|
-Wno-declaration-after-statement
|
|
-Wno-deprecated-declarations
|
|
-Wno-disabled-macro-expansion
|
|
-Wno-nonportable-system-include-path
|
|
-Wno-overlength-strings
|
|
-Wno-pre-c11-compat
|
|
-Wno-reserved-identifier
|
|
-Wno-unsafe-buffer-usage
|
|
-Wno-used-but-marked-unused"
|
|
|
|
- name: Build ClangCL x64 Debug
|
|
run: >
|
|
cmake
|
|
--build build-clangcl-x64
|
|
--config Debug
|
|
|
|
- name: Test ClangCL x64 Debug
|
|
run: >
|
|
ctest
|
|
--test-dir build-clangcl-x64
|
|
--build-config Debug
|
|
--output-on-failure
|
|
|
|
- name: Build ClangCL x64 Release
|
|
run: >
|
|
cmake
|
|
--build build-clangcl-x64
|
|
--config Release
|
|
|
|
- name: Test ClangCL x64 Release
|
|
run: >
|
|
ctest
|
|
--test-dir build-clangcl-x64
|
|
--build-config Release
|
|
--output-on-failure
|