Debian Codegraph @

crt/s2n/.github/workflows/ci_windows.yml

raw symbols SCIP
1 ---
2 name: Windows (MSYS2)
3
4 on:
5 push:
6 branches: [main]
7 pull_request:
8 branches: [main]
9 merge_group:
10 types: [checks_requested]
11 branches: [main]
12
13 permissions:
14 contents: read
15
16 jobs:
17 windows-msys2:
18 runs-on: windows-latest
19 name: CI Windows (${{matrix.sys}})
20 strategy:
21 fail-fast: false
22 matrix:
23 include:
24 - sys: ucrt64
25 pkg-prefix: mingw-w64-ucrt-x86_64
26 env-path: /ucrt64
27 - sys: mingw64
28 pkg-prefix: mingw-w64-x86_64
29 env-path: /mingw64
30 - sys: clang64
31 pkg-prefix: mingw-w64-clang-x86_64
32 env-path: /clang64
33 asan: ON
34 steps:
35 - uses: actions/checkout@v7
36
37 - name: Setup MSYS2
38 uses: msys2/setup-msys2@v2
39 with:
40 msystem: ${{matrix.sys}}
41 update: true
42 install: >-
43 ${{matrix.pkg-prefix}}-clang
44 ${{matrix.pkg-prefix}}-cmake
45 ${{matrix.pkg-prefix}}-ninja
46 ${{matrix.pkg-prefix}}-go
47 ${{matrix.pkg-prefix}}-nasm
48 make
49 git
50 diffutils
51
52 - name: Build AWS-LC
53 shell: msys2 {0}
54 run: |
55 set -eu
56 git clone --depth 1 https://github.com/aws/aws-lc.git aws-lc-src
57 cmake -B aws-lc-build aws-lc-src -GNinja \
58 -DCMAKE_C_COMPILER=clang \
59 -DCMAKE_CXX_COMPILER=clang++ \
60 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
61 -DCMAKE_INSTALL_PREFIX=${{matrix.env-path}}/local \
62 -DBUILD_SHARED_LIBS=OFF \
63 -DBUILD_TESTING=OFF
64 cmake --build aws-lc-build -j $(nproc) --target install
65
66 - name: Build libs2n.a and unit tests
67 shell: msys2 {0}
68 run: |
69 set -eu
70 cmake -B build . \
71 -DCMAKE_C_COMPILER=clang \
72 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
73 -DCMAKE_PREFIX_PATH=${{matrix.env-path}}/local \
74 -DS2N_ENFORCE_PROPER_LIBCRYPTO_FEATURE_PROBE=ON \
75 -DBUILD_TESTING=ON \
76 -DASAN=${{matrix.asan || 'OFF'}}
77 cmake --build ./build -j $(nproc)
78
79 - name: Run unit tests
80 shell: msys2 {0}
81 run: |
82 set -eu
83 ctest --test-dir build --output-on-failure -j $(nproc)