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:
|
|
|
|
runs-on: windows-latest
|
2021-05-21 16:56:00 +08:00
|
|
|
# Run a job for each of the specified target architectures:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- win64
|
|
|
|
- win32
|
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:
|
|
|
|
arch: ${{ matrix.arch }}
|
|
|
|
- uses: ilammy/setup-nasm@v1
|
|
|
|
with:
|
|
|
|
platform: ${{ matrix.arch }}
|
2021-05-19 20:18:04 +08:00
|
|
|
- name: prepare the build directory
|
|
|
|
run: mkdir _build
|
|
|
|
- name: config
|
|
|
|
working-directory: _build
|
|
|
|
run: |
|
2021-05-31 20:22:35 +08:00
|
|
|
if ( "${{ matrix.arch }}" -eq "win32" ) { $target = "VC-WIN32" ; $fips = "no-fips" } else { $target = "VC-WIN64A" ; $fips = "enable-fips" }
|
|
|
|
perl ..\Configure --banner=Configured no-makedepend $fips $target
|
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
|
|
|
|
if: $${{ matrix.arch == 'win64' }}
|
|
|
|
run: |
|
|
|
|
mkdir _dest
|
|
|
|
nmake install DESTDIR=_dest
|
|
|
|
working-directory: _build
|
2021-05-19 20:18:04 +08:00
|
|
|
plain:
|
|
|
|
runs-on: windows-latest
|
|
|
|
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:
|
|
|
|
runs-on: windows-latest
|
|
|
|
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
|