-
Notifications
You must be signed in to change notification settings - Fork 6
113 lines (113 loc) · 3.45 KB
/
Copy pathbuild_windows.yml
File metadata and controls
113 lines (113 loc) · 3.45 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Build from source on Windows.
name: build_windows
on:
pull_request:
push:
permissions: read-all
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-11-arm
visual_studio_version: 2022
- os: windows-2022
visual_studio_version: 2022
- os: windows-2025
visual_studio_version: 2026
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install build dependencies
run: |
git clone https://github.com/libyal/vstools.git ..\vstools
- name: Download test data
run: |
if (Test-Path .\synctestdata.ps1) { .\synctestdata.ps1 }
- name: Build from source
run: |
.\synclibs.ps1 -UseHead
.\autogen.ps1
.\build.ps1 -VisualStudioVersion ${{ matrix.visual_studio_version }} -Configuration Release -Platform x64 -PythonPath ${{ env.pythonLocation }} -VSToolsOptions "--extend-with-x64 --no-python-dll"
- name: Run tests
run: |
.\runtests.ps1
build_cygwin:
runs-on: windows-latest
strategy:
matrix:
include:
- configure_options: ''
steps:
- name: Configure git
run: git config --global core.autocrlf false
- uses: actions/checkout@v6
- name: Install Cygwin and build dependencies
uses: cygwin/cygwin-install-action@v6
with:
packages: autoconf, automake, binutils, curl, gcc-core, gettext-devel, git, libtool, make, pkg-config
platform: x86_64
add-to-path: true
- name: Download test data
shell: bash --login -e -o pipefail -o igncr {0}
working-directory: ${{ github.workspace }}
env:
CHERE_INVOKING: 1
run: |
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
- name: Build from source
shell: bash --login -e -o pipefail -o igncr {0}
working-directory: ${{ github.workspace }}
env:
CHERE_INVOKING: 1
CONFIGURE_OPTIONS: ${{ matrix.configure_options }}
LD: ld
run: |
./synclibs.sh --use-head
./autogen.sh
./configure ${CONFIGURE_OPTIONS}
make -j4 > /dev/null
- name: Run tests
shell: bash --login -e -o pipefail -o igncr {0}
working-directory: ${{ github.workspace }}
env:
CHERE_INVOKING: 1
run: |
tests/runtests.sh -j4 VERBOSE=1
build_msys2_mingw:
runs-on: windows-latest
strategy:
matrix:
include:
- configure_options: '--disable-winapi'
- configure_options: '--enable-winapi'
steps:
- name: Configure git
run: git config --global core.autocrlf false
- uses: actions/checkout@v6
- name: Set up MSYS2 with MinGW-w64
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: autoconf automake curl git libtool make mingw-w64-x86_64-gcc mingw-w64-x86_64-gettext-runtime mingw-w64-x86_64-gettext-tools pkg-config
- name: Download test data
shell: msys2 {0}
run: |
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
- name: Build from source
shell: msys2 {0}
env:
CONFIGURE_OPTIONS: ${{ matrix.configure_options }}
run: |
./synclibs.sh --use-head
./autogen.sh
./configure ${CONFIGURE_OPTIONS}
make -j4 > /dev/null
- name: Run tests
shell: msys2 {0}
run: |
tests/runtests.sh -j4 VERBOSE=1