-
Notifications
You must be signed in to change notification settings - Fork 292
82 lines (65 loc) · 2.05 KB
/
build-test.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
name: Build Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-dub-ubuntu:
name: Dub
runs-on: ubuntu-latest
strategy:
matrix:
dc: [dmd-latest, ldc-latest]
steps:
- uses: actions/checkout@v2
- name: Install System Dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -yq \
dh-dlang \
libatk1.0-dev \
libcairo2-dev \
libglib2.0-dev \
libgtk-3-dev \
libpango1.0-dev \
librsvg2-dev \
libsecret-1-dev \
libunwind-dev \
libgtksourceview-3.0-dev \
libpeas-dev \
libvte-2.91-dev
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Build
run: dub build --compiler=$DC
- name: Test
run: dub test --compiler=$DC
build-debian-testing:
name: Debian Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cd .github/ci/ && podman build -t tilix -f ./Dockerfile-debian-testing .
- name: Build
run: podman run -t -e COMPILER_VENDOR=$CVENDOR -e CC=gcc -e CXX=g++ -v `pwd`:/build tilix
./.github/ci/run-build.sh
- name: Test
run: podman run -t -e COMPILER_VENDOR=$CVENDOR -e CC=gcc -e CXX=g++ -v `pwd`:/build tilix
./.github/ci/run-tests.sh
build-ubuntu:
name: Ubuntu LTS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cd .github/ci/ && podman build -t tilix -f ./Dockerfile-ubuntu-jammy .
- name: Build
run: podman run -t -e COMPILER_VENDOR=$CVENDOR -e CC=gcc -e CXX=g++ -v `pwd`:/build tilix
./.github/ci/run-build.sh
- name: Test
run: podman run -t -e COMPILER_VENDOR=$CVENDOR -e CC=gcc -e CXX=g++ -v `pwd`:/build tilix
./.github/ci/run-tests.sh