2021-03-30 11:04:52 +08:00
|
|
|
name: Windows GitHub CI
|
|
|
|
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
2021-05-19 20:18:04 +08:00
|
|
|
shared:
|
2021-05-21 16:56:00 +08:00
|
|
|
# Run a job for each of the specified target architectures:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-11 09:58:49 +08:00
|
|
|
os:
|
|
|
|
- windows-latest
|
|
|
|
- windows-2016
|
2021-06-11 10:30:22 +08:00
|
|
|
platform:
|
|
|
|
- arch: win64
|
|
|
|
config: VC-WIN64A enable-fips
|
|
|
|
- arch: win32
|
|
|
|
config: VC-WIN32 --strict-warnings no-fips
|
2021-06-11 09:58:49 +08:00
|
|
|
runs-on: ${{matrix.os}}
|
2021-05-19 20:18:04 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
2021-05-21 16:56:00 +08:00
|
|
|
with:
|
2021-06-11 10:30:22 +08:00
|
|
|
arch: ${{ matrix.platform.arch }}
|
2021-05-21 16:56:00 +08:00
|
|
|
- uses: ilammy/setup-nasm@v1
|
|
|
|
with:
|
2021-06-11 10:30:22 +08:00
|
|
|
platform: ${{ matrix.platform.arch }}
|
2021-05-19 20:18:04 +08:00
|
|
|
- name: prepare the build directory
|
|
|
|
run: mkdir _build
|
|
|
|
- name: config
|
|
|
|
working-directory: _build
|
|
|
|
run: |
|
2021-06-11 10:30:22 +08:00
|
|
|
perl ..\Configure --banner=Configured no-makedepend ${{ matrix.platform.config }}
|
2021-05-19 20:18:04 +08:00
|
|
|
perl configdata.pm --dump
|
|
|
|
- name: build
|
|
|
|
working-directory: _build
|
2021-06-02 23:26:02 +08:00
|
|
|
run: nmake /S
|
2021-05-19 20:18:04 +08:00
|
|
|
- name: test
|
|
|
|
working-directory: _build
|
2021-05-31 20:22:35 +08:00
|
|
|
run: nmake test VERBOSE_FAILURE=yes TESTS=-test_fuzz* HARNESS_JOBS=4
|
2021-05-24 18:16:00 +08:00
|
|
|
- name: install
|
|
|
|
# Run on 64 bit only as 32 bit is slow enough already
|
2021-06-11 10:30:22 +08:00
|
|
|
if: $${{ matrix.platform.arch == 'win64' }}
|
2021-05-24 18:16:00 +08:00
|
|
|
run: |
|
|
|
|
mkdir _dest
|
|
|
|
nmake install DESTDIR=_dest
|
|
|
|
working-directory: _build
|
2021-05-19 20:18:04 +08:00
|
|
|
plain:
|
2021-06-11 09:58:49 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- windows-latest
|
|
|
|
- windows-2016
|
|
|
|
runs-on: ${{matrix.os}}
|
2021-05-19 20:18:04 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
- name: prepare the build directory
|
|
|
|
run: mkdir _build
|
|
|
|
- name: config
|
|
|
|
working-directory: _build
|
|
|
|
run: |
|
|
|
|
perl ..\Configure --banner=Configured no-makedepend no-shared no-fips VC-WIN64A-masm
|
|
|
|
perl configdata.pm --dump
|
|
|
|
- name: build
|
|
|
|
working-directory: _build
|
2021-06-02 23:26:02 +08:00
|
|
|
run: nmake /S
|
2021-05-19 20:18:04 +08:00
|
|
|
- name: test
|
|
|
|
working-directory: _build
|
2021-06-09 18:27:51 +08:00
|
|
|
run: nmake test VERBOSE_FAILURE=yes HARNESS_JOBS=4
|
2021-03-30 11:04:52 +08:00
|
|
|
minimal:
|
2021-06-11 09:58:49 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- windows-latest
|
|
|
|
- windows-2016
|
|
|
|
runs-on: ${{matrix.os}}
|
2021-03-30 11:04:52 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
- name: prepare the build directory
|
|
|
|
run: mkdir _build
|
|
|
|
- name: config
|
|
|
|
working-directory: _build
|
|
|
|
run: |
|
2021-05-12 22:42:46 +08:00
|
|
|
perl ..\Configure --banner=Configured no-makedepend no-bulk no-deprecated no-fips no-asm -DOPENSSL_SMALL_FOOTPRINT VC-WIN64A
|
2021-03-30 11:04:52 +08:00
|
|
|
perl configdata.pm --dump
|
|
|
|
- name: build
|
|
|
|
working-directory: _build
|
2021-06-02 23:26:02 +08:00
|
|
|
run: nmake # verbose, so no /S here
|
2021-03-30 11:04:52 +08:00
|
|
|
- name: test
|
|
|
|
working-directory: _build
|
2021-05-31 20:22:35 +08:00
|
|
|
run: nmake test VERBOSE_FAILURE=yes TESTS=-test_fuzz* HARNESS_JOBS=4
|