Disable additional MSVC warnings #461
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Actions workflow to run tests on Windows. | |
name: "Windows" | |
on: | |
push: {} | |
pull_request: {} | |
schedule: | |
- cron: "0 0 * * 0" # At 00:00 weekly on Sunday. | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: "${{ matrix.os }}/${{ matrix.arch }} (${{ matrix.generator }}${{ matrix.shared == 'ON' && ', shared' || '' }})" | |
runs-on: "${{ matrix.os }}" | |
if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }} | |
permissions: | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["windows-2022", "windows-2019"] | |
arch: ["ARM64", "x64", "Win32"] | |
shared: ["ON", "OFF"] | |
include: | |
- os: "windows-2022" | |
generator: "Visual Studio 17 2022" | |
- os: "windows-2019" | |
generator: "Visual Studio 16 2019" | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "Setup MSYS2" | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
diffutils | |
gcc | |
git | |
patch | |
perl | |
- name: "Update" | |
shell: msys2 {0} | |
run: ./update.sh | |
- name: "Configure CMake" | |
shell: cmd | |
run: cmake -Bbuild -G "${{ matrix.generator }}" -A ${{ matrix.arch }} -D BUILD_SHARED_LIBS=${{ matrix.shared }} -D CMAKE_INSTALL_PREFIX=../local | |
- name: "Build" | |
shell: cmd | |
run: cmake --build build --config Release | |
- name: "Test" | |
if: matrix.arch != 'ARM64' | |
shell: cmd | |
run: ctest --test-dir build -C Release --output-on-failure | |
- name: "Upload build artifacts" | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "${{ matrix.os }}-${{ matrix.arch }}${{ matrix.shared == 'ON' && '-shared' || '' }}-build-results" | |
path: "build" |