Skip to content

Commit

Permalink
Land #979
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Dec 19, 2023
2 parents 30eff11 + 747c270 commit a21a503
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 46 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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.

jobs:
test:
name: "${{ matrix.os }}/${{ matrix.arch }} (${{ matrix.generator }})"
runs-on: "${{ matrix.os }}"
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os: ["windows-2022", "windows-2019"]
arch: ["ARM64", "x64", "Win32"]
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 }} -DCMAKE_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 }}-build-results"
path: "build"
46 changes: 0 additions & 46 deletions .github/workflows/windows_test.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

[![Linux Build Status](https://github.com/libressl/portable/actions/workflows/linux.yml/badge.svg)](https://github.com/libressl/portable/actions/workflows/linux.yml)
[![macOS Build Status](https://github.com/libressl/portable/actions/workflows/macos.yml/badge.svg)](https://github.com/libressl/portable/actions/workflows/macos.yml)
[![Windows Build Status](https://github.com/libressl/portable/actions/workflows/windows.yml/badge.svg)](https://github.com/libressl/portable/actions/workflows/windows.yml)
[![Android Build Status](https://github.com/libressl/portable/actions/workflows/android.yml/badge.svg)](https://github.com/libressl/portable/actions/workflows/android.yml)
[![Solaris Build Status](https://github.com/libressl/portable/actions/workflows/solaris.yml/badge.svg)](https://github.com/libressl/portable/actions/workflows/solaris.yml)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/libressl.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:libressl)
Expand Down

0 comments on commit a21a503

Please sign in to comment.