-
Notifications
You must be signed in to change notification settings - Fork 40
91 lines (89 loc) · 2.31 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
name: Bob the Builder
# Run on all branches, including all pull requests, except the 'dev'
# branch since that's where we run Coverity Scan (limited tokens/day)
on:
push:
branches:
- '**'
- '!dev'
pull_request:
branches:
- '**'
jobs:
build:
# Verify we can build on latest Ubuntu with both gcc and clang
name: ${{ matrix.compiler }}
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc, clang]
fail-fast: false
env:
MAKEFLAGS: -j3
CC: ${{ matrix.compiler }}
steps:
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install tree
- uses: actions/checkout@v4
- name: Configure
run: |
./autogen.sh
./configure --prefix=
- name: Build
run: |
make V=1
- name: Install to ~/tmp and Inspect
run: |
DESTDIR=~/tmp make install-strip
tree ~/tmp
ldd ~/tmp/bin/mg
size ~/tmp/bin/mg
~/tmp/bin/mg -h
msys2:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git gcc make autoconf automake ncurses tree
- name: Configure
run: |
./autogen.sh
./configure --prefix=
- name: Build
run: |
make
- name: Install
run: |
DESTDIR=~/tmp make install-strip
tree ~/tmp
ldd ~/tmp/mingw64/bin/mg.exe
size ~/tmp/mingw64/bin/mg.exe
~/tmp/mingw64/bin/mg.exe -h
debian:
# Verify that Debian packages can be built
name: Debian Package
runs-on: ubuntu-latest
container: debian:stable
steps:
- uses: actions/checkout@v4
- name: Installing dependencies
run: |
apt-get update
apt-get install -y build-essential libncurses-dev autoconf automake \
dpkg-dev debhelper devscripts
- name: Building Debian package
run: |
./autogen.sh
./configure
make distcheck
make package
echo "== mg.changes ================================================"
cat ../mg*.changes