-
Notifications
You must be signed in to change notification settings - Fork 135
80 lines (78 loc) · 1.97 KB
/
check.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
name: Build and run tests
on: [ push, pull_request, workflow_dispatch ]
jobs:
ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Prepare
run: |
sudo sed -i -e '/en_US/s/^# *//' /etc/locale.gen
sudo locale-gen
sudo update-locale LANG=en_US.UTF-8
sudo apt-get update
sudo apt-get install -y autoconf automake autopoint gettext libtool
- name: Check out
uses: actions/checkout@v4
- name: Configure
run: |
./utils/autogen.sh
./configure --enable-debug
- name: Build
run: make
- name: Run tests
run: make check
- name: Run distribution tests
run: make distcheck
- name: Upload logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: tre-ubuntu-logs
path: ./**/*.log
macos:
name: macOS
runs-on: macos-latest
steps:
- name: Prepare
run: |
brew update
brew install autoconf automake gettext libtool
- name: Check out
uses: actions/checkout@v4
- name: Configure
run: |
./utils/autogen.sh
./configure --enable-debug
- name: Build
run: make
- name: Run tests
run: make check
- name: Run distribution tests
run: make distcheck
- name: Upload logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: tre-macos-logs
path: ./**/*.log
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Prepare
uses: microsoft/setup-msbuild@v2
- name: Check out
uses: actions/checkout@v4
- name: Build
run: msbuild win32/tre.sln
- name: Run tests
run: |
win32/Debug/retest.exe -o tests/retest.log
win32/Debug/test-str-source.exe -o tests/test-str-source.log
- name: Upload logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: tre-macos-logs
path: ./**/*.log