-
Notifications
You must be signed in to change notification settings - Fork 23
73 lines (60 loc) · 1.79 KB
/
ci-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
66
67
68
69
70
71
72
73
---
name: CI-Windows
on: [push, pull_request]
jobs:
build:
name: MSYS2 Build and Test
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
fail-fast: false
matrix:
include:
- sys: mingw64
env: x86_64
- sys: mingw32
env: i686
- sys: ucrt64
env: ucrt-x86_64
steps:
- name: Install prerequisites
uses: msys2/setup-msys2@v2
with:
# cSpell:ignore msystem
msystem: ${{ matrix.sys }}
install: >-
mingw-w64-${{ matrix.env }}-libgcrypt
mingw-w64-${{ matrix.env }}-gcc
mingw-w64-${{ matrix.env }}-cmake
mingw-w64-${{ matrix.env }}-ninja
mingw-w64-${{ matrix.env }}-doxygen
mingw-w64-${{ matrix.env }}-graphviz
mingw-w64-${{ matrix.env }}-ghostscript
mingw-w64-${{ matrix.env }}-texlive-bin
diffutils
groff
- uses: actions/checkout@v3
- name: Configure
run: cmake --preset default --fresh
- name: Build
run: cmake --build --preset srecord-executables
- name: Smoke test
run: cmake --build --preset srecord-executables-version
- name: Build test prerequisites
run: cmake --build --preset prepare-test
- name: Test
working-directory: build
run: ctest --output-on-failure --output-junit ctest.junit.xml
- name: Build all
working-directory: build
run: ninja
- name: Create ZIP package
working-directory: build
run: cpack -G ZIP
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: msys2-${{ matrix.env }}-packages
path: build/srecord-*.*