-
Notifications
You must be signed in to change notification settings - Fork 48
69 lines (60 loc) · 2.14 KB
/
windows_ci.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
name: Windows CI
on:
pull_request:
jobs:
build:
strategy:
matrix:
os: [windows-latest]
mode: [debug, release]
config-opt: [' ', --enable-thread-safety]
name: ${{ matrix.os }}|${{ matrix.mode }}|${{ matrix.config-opt}}
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- name: Install Cygwin Dependencies
uses: cygwin/cygwin-install-action@v4
with:
# Packages to install
packages: |
autoconf,
coreutils,
gperf,
m4,
make,
mingw64-x86_64-gcc-core,
moreutils,
wget
- name: Building GMP
shell: bash
env:
CYGWIN: winsymlinks:native
run: >-
pushd . &&
mkdir -p /tools && cd /tools && mkdir -p dynamic_gmp && mkdir -p static_gmp &&
wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz &&
tar xf gmp-6.3.0.tar.xz &&
cd gmp-6.3.0 &&
./configure --host=x86_64-w64-mingw32 --build=i686-pc-cygwin --enable-shared --disable-static --prefix=/tools/dynamic_gmp &&
make && make install && make clean &&
./configure --host=x86_64-w64-mingw32 --build=i686-pc-cygwin --enable-static --disable-shared --prefix=/tools/static_gmp &&
make && make install &&
popd
- name: Building Yices
shell: bash
env:
CYGWIN: winsymlinks:native
run: >-
autoconf &&
./configure ${{ matrix.config-opt }} --host=x86_64-w64-mingw32 CPPFLAGS=-I/tools/dynamic_gmp/include LDFLAGS=-L/tools/dynamic_gmp/lib --with-static-gmp=/tools/static_gmp/lib/libgmp.a --with-static-gmp-include-dir=/tools/static_gmp/include &&
export LD_LIBRARY_PATH=/usr/local/lib/:${LD_LIBRARY_PATH} &&
make OPTION=mingw64 MODE=${{ matrix.mode }}
- name: Run Yices API Tests
shell: bash
env:
CYGWIN: winsymlinks:native
run: >-
export PATH=/tools/dynamic_gmp/bin:/tools/static_gmp/bin:$PATH &&
make OPTION=mingw64 MODE=${{ matrix.mode }} check-api &&
make OPTION=mingw64 MODE=${{ matrix.mode }} test