-
Notifications
You must be signed in to change notification settings - Fork 43
65 lines (54 loc) · 1.57 KB
/
cmake-mingw-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Windows Mingw64
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-mingw64:
strategy:
fail-fast: false
matrix:
version: [3.3.1]
# version: [3.0.14, 3.1.6, 3.2.2, 3.3.1] all of them works, but lastest version is enough
name: mingw64 openssl-${{ matrix.version }}
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: Install dependencies on Windows
shell: bash
run: |
choco install -y jom nasm ccache
echo "PATH=$ENV:PATH;C:\Program Files\NASM" >> $ENV:GITHUB_ENV
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
pacboy: >-
ccache:p
cmake:p
gcc:p
make:p
ninja:p
- name: Configure CMake
run: >
cmake -B build -G Ninja
-DOPENSSL_BUILD_VERBOSE=ON
-DOPENSSL_CONFIGURE_VERBOSE=ON
-DCMAKE_BUILD_TYPE=Release
-DOPENSSL_TARGET_VERSION=${{ matrix.version }}
- name: Build
run: cmake --build build
- name: Show ccache statistics
run: ccache -sv
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Waterwall_${{ runner.os }}_${{ runner.arch }}_${{ matrix.c_compiler }}
path: ${{ github.workspace }}/build/bin