-
Notifications
You must be signed in to change notification settings - Fork 99
128 lines (118 loc) · 3.93 KB
/
compile_ubuntu.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
name: compile_ubuntu
on: [push]
env:
BUILD_TYPE: Release
permissions:
contents: read
jobs:
compile_latest_and_test:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout_git
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 15
- name: install_packages
run: |
sudo apt-get update
sudo apt-get install appstream cmake desktop-file-utils doxygen gettext gnuplot gnuplot-x11 graphviz libwxgtk3.2-dev libwxgtk-webview3.2-dev maxima maxima-share maxima-doc netcat-openbsd ninja-build pandoc xvfb at-spi2-core dpkg-dev po4a
- name: configure
run: |
export CXXFLAGS="-Wall -Wextra -ansi"
export LANG=en_US.UTF-8
mkdir build
touch build build/build.ninja
cd build
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DWXM_UNIT_TESTS=YES ..
cd ..
- name: compile
run: |
cd build
cmake --build .
cd ..
- name: git-diff
# run git diff to see, if the configure/build process has changed the source files (po4a can do that)
run: git diff --compact-summary
- name: update-locale
run: |
cd build
cmake --build . --target update-locale
cd ..
- name: create_packages
run: |
cd build
cmake --build . --target package
cd ..
- name: run_tests
run: |
cd build
export HOME=`pwd`
export CTEST_OUTPUT_ON_FAILURE=1
GDK_BACKEND=x11 xvfb-run -a ctest -j 1
cd ..
compile_without_webview:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout_git
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 15
- name: install_packages
run: |
sudo apt-get update
sudo apt-get install appstream cmake desktop-file-utils doxygen gettext gnuplot gnuplot-x11 graphviz libwxgtk3.2-dev maxima maxima-share maxima-doc netcat-openbsd ninja-build pandoc xvfb at-spi2-core po4a
- name: configure
run: |
export CXXFLAGS="-Wall -Wextra -ansi"
export LANG=en_US.UTF-8
mkdir build
touch build build/build.ninja
cd build
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DWXM_UNIT_TESTS=YES -DWXM_DISABLE_WEBVIEW=ON ..
cd ..
- name: compile
run: |
cd build
cmake --build .
cd ..
- name: update-locale
run: |
cd build
cmake --build . --target update-locale
cd ..
compile_2004:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- name: Checkout_git
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 15
- name: install_packages
run: |
sudo apt-get update
sudo apt-get install cmake gettext libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev pandoc make po4a
- name: configure
run: |
export CXXFLAGS="-Wall -Wextra"
export LANG=en_US.UTF-8
mkdir build
cd build
cmake ..
cd ..
- name: compile
run: |
cd build
cmake --build .
cd ..
- name: git-diff
# run git diff to see, if the configure/build process has changed the source files (po4a can do that)
run: git diff --compact-summary