File tree Expand file tree Collapse file tree 2 files changed +55
-28
lines changed Expand file tree Collapse file tree 2 files changed +55
-28
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+ on : [ push, pull_request ]
3
+
4
+ jobs :
5
+ build :
6
+ strategy :
7
+ matrix :
8
+ os : [ ubuntu-20.04, macos-12 ]
9
+ arch : [ x86, x86_64 ]
10
+ dc : [ dmd-2.100.2, ldc-1.30.0 ]
11
+ exclude :
12
+ # No x86 on macOS
13
+ - os : macos-12
14
+ arch : x86
15
+
16
+ runs-on : ${{ matrix.os }}
17
+ steps :
18
+
19
+ - uses : actions/checkout@v2
20
+
21
+ - name : Install build dependencies (macOS)
22
+ if : ${{ matrix.os == 'macos-12' }}
23
+ run : brew install ncurses
24
+
25
+ - name : Install build dependencies (Linux/x86)
26
+ if : ${{ matrix.os == 'ubuntu-20.04' && matrix.arch == 'x86' }}
27
+ run : |
28
+ sudo dpkg --add-architecture i386
29
+ sudo apt-get update
30
+ sudo apt-get install -y binutils-i686-linux-gnu gcc-multilib libncurses-dev:i386 libz-dev:i386 libtinfo-dev:i386
31
+
32
+ - name : Install D compiler
33
+ uses : dlang-community/setup-dlang@43589c229861e1720e187a344c67dad1d9eefe4c
34
+ with :
35
+ compiler : ${{ matrix.dc }}
36
+
37
+ - name : Build examples
38
+ run : |
39
+ for d in $(find examples -maxdepth 1 -mindepth 1 -type d) ; do
40
+ echo "=== $d ==="
41
+ dub --root="$d" build --arch=${{ matrix.arch }}
42
+ done
43
+
44
+ syntax :
45
+ runs-on : ubuntu-20.04
46
+ steps :
47
+ - uses : actions/checkout@v2
48
+
49
+ - name : Install D compiler
50
+ uses : dlang-community/setup-dlang@43589c229861e1720e187a344c67dad1d9eefe4c
51
+ with :
52
+ compiler : dmd-2.100.2
53
+
54
+ - name : Check syntax
55
+ run : dub lint --syntax-check
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments