-
Notifications
You must be signed in to change notification settings - Fork 206
143 lines (143 loc) · 4.22 KB
/
build.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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: build
on: [ push, pull_request ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang, gcc, gcc-9, gcc-10 ]
iconv: [ enable-iconv, disable-iconv]
glib: [ enable-glib, disable-glib ]
steps:
- name: Install packages
run: sudo apt install gettext
- uses: actions/checkout@v2
- name: Fetch test data
run: git clone https://github.com/mdbtools/mdbtestdata.git test
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure --disable-silent-rules --${{ matrix.glib }} --${{ matrix.iconv }} --with-unixodbc=/usr
env:
CC: ${{ matrix.compiler }}
- name: Make
run: make
- name: CLI tests
run: bash -e -x ./test_script.sh
- name: SQL tests
run: bash -e -x ./test_sql.sh
- name: ODBC tests
run: ./src/odbc/unittest
env:
MDBPATH: test/data
- name: pkg-config libmdb test
run: pkg-config libmdb --exists
env:
PKG_CONFIG_PATH: .
- name: pkg-config libmdbsql test
run: pkg-config libmdbsql --exists
env:
PKG_CONFIG_PATH: .
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang, gcc ]
iconv: [ enable-iconv, disable-iconv]
glib: [ enable-glib, disable-glib ]
steps:
- name: Install packages
run: brew install bison gawk automake
- uses: actions/checkout@v2
- name: Fetch test data
run: git clone https://github.com/mdbtools/mdbtestdata.git test
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure --disable-silent-rules --${{ matrix.glib }} --${{ matrix.iconv }} --with-unixodbc=/usr/local/opt
env:
CC: ${{ matrix.compiler }}
YACC: /usr/local/opt/bison/bin/bison
- name: Make
run: make
- name: CLI tests
run: bash -e -x ./test_script.sh
- name: SQL tests
run: bash -e -x ./test_sql.sh
- name: ODBC tests
run: ./src/odbc/unittest
env:
MDBPATH: test/data
- name: pkg-config libmdb test
run: pkg-config libmdb --exists
env:
PKG_CONFIG_PATH: .
- name: pkg-config libmdbsql test
run: pkg-config libmdbsql --exists
env:
PKG_CONFIG_PATH: .
macos-iodbc:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
compiler: [ clang, gcc ]
glib: [ enable-glib, disable-glib ]
steps:
- name: Remove packages
run: brew unlink unixodbc
- name: Install packages
run: brew install libiodbc bison gawk automake
- name: Add path
run: echo /usr/local/opt/libiodbc/bin >> $GITHUB_PATH
- uses: actions/checkout@v2
- name: Fetch test data
run: git clone https://github.com/mdbtools/mdbtestdata.git test
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure --disable-silent-rules --${{ matrix.glib }} --with-iodbc=/usr/local/opt/libiodbc
env:
CC: ${{ matrix.compiler }}
YACC: /usr/local/opt/bison/bin/bison
- name: Make
run: make
- name: ODBC tests
run: ./src/odbc/unittest
env:
MDBPATH: test/data
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
iconv: [ enable-iconv, disable-iconv]
glib: [ enable-glib, disable-glib ]
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
autotools
base-devel
gcc
git
glib2-devel
- uses: actions/checkout@v2
- name: Check out test data
run: git clone https://github.com/mdbtools/mdbtestdata.git test
- name: Autoconf
run: autoreconf -i -f
- name: Configure
run: ./configure --${{ matrix.glib }} --${{ matrix.iconv }}
- name: Make
run: make
- name: Test
run: bash -e -x ./test_script.sh
- name: SQL Test
run: bash -e -x ./test_sql.sh