-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (103 loc) · 3.22 KB
/
ci.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
name: CI
on: [ push ]
jobs:
testing:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system:
- ubuntu-latest
- macos-latest
compiler:
- binary: clang
configure-flags: ""
- binary: gcc
configure-flags: ""
- binary: tcc
configure-flags: ""
- binary: pcc
configure-flags: ""
unhosted-flag:
- ""
- "-u"
exclude:
# TODO (dargueta): Figure out what to do about incompatible headers
- operating-system: macos-latest
compiler:
binary: tcc
- operating-system: macos-latest
compiler:
binary: pcc
steps:
- uses: actions/checkout@v3
- name: Install Compilers
uses: ConorMacBride/install-package@v1
with:
apt: clang gcc-mingw-w64 pcc tcc
brew: gcc mingw-w64
# TCC can't be installed via Homebrew on recent versions of macOS because
# of an "upstream incompatibility".
- name: Install TCC on MacOS
if: matrix.operating-system == 'macos-latest' && matrix.compiler.binary == 'tcc'
run: make -C make -f /compiler-support/install.mk install-tcc
- name: Install PCC on MacOS
if: matrix.operating-system == 'macos-latest' && matrix.compiler.binary == 'pcc'
run: make -C make -f /compiler-support/install.mk install-pcc
- name: Configure
run: |
./configure -d \
--cc=${{ matrix.compiler.binary }} \
${{ matrix.unhosted-flag }} \
${{ matrix.compiler.configure-flags }}
- name: Compile
# env:
# # Only needed on OSX for TCC/PCC. This is very hacky and will break if
# # they upgrade XCode on the Mac runners.
# CFLAGS: >-
# -I/Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
# -I/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
# -I/Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include
run: make library
- name: Test Installation
run: sudo make install
- name: Run Tests
run: make test
testing-sdcc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
architecture:
- ds390
- ds400
- ez80_z80
- hc08
- mcs51
- mos6502
- mos65c02
- pdk13
- pdk14
- pdk15
- pic14
- pic16
- r2k
- r2ka
- r3ka
- r800
- s08
- sm83
- stm8
- TININative
- tlcs90
- z180
- z80
- z80n
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: make -C make -f compiler-support/install.mk install-sdcc
- name: Configure
run: ./configure --cc=sdcc
- name: Compile
run: make library MY_CFLAGS=-m${{ matrix.architecture }}