-
Notifications
You must be signed in to change notification settings - Fork 0
167 lines (161 loc) · 4.15 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
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
- binary: gcc
- binary: tcc
unhosted-flag:
- ""
- "-u"
exclude:
# TODO (dargueta): Figure out what to do about incompatible headers
- operating-system: macos-latest
compiler:
binary: tcc
steps:
- uses: actions/checkout@v4
- name: Install Compilers
uses: ConorMacBride/install-package@v1
with:
apt: clang gcc-mingw-w64 tcc
brew: gcc mingw-w64
- name: Configure
run: |
./configure -d \
--cc=${{ matrix.compiler.binary }} \
${{ matrix.unhosted-flag }}
- name: Environment
run: |-
${{ matrix.compiler.binary }} --version ;
uname -a ;
export ;
- name: Compile
run: make library
- name: Install
run: sudo make install
- name: Run Tests
run: make test ARGS='--log-visible debug'
testing-sdcc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
architecture:
- ds390
- ds400
- ez80_z80
- hc08
- mcs51
- mos6502
- mos65c02
- pdk13
- pdk14
- pdk15
- r2k
- r2ka
- r3ka
- r800
- s08
- sm83
- stm8
- tlcs90
- z180
- z80
- z80n
# These require additional work with flags, uncomment later
# - pic14
# - pic16
#
# Something weird is going on with this one, possibly another SDCC bug.
# - TININative
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: make -C make -f compiler-support/install.mk install-sdcc SDCC_VERSION=4.4.0
- name: Configure
run: ./configure --cc=sdcc -m ${{ matrix.architecture }}
- name: Environment
run: |-
sdcc --version ;
uname -a ;
export ;
- name: Compile
run: make library
testing-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
compiler:
- binary: clang
- binary: gcc
- binary: x86_64-w64-mingw32-gcc
unhosted-flag:
- ""
- "-u"
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- uses: cygwin/cygwin-install-action@v4
with:
packages: >-
clang
gcc
make
mingw64-x86_64-gcc-core
- name: Environment
run: >-
${{ matrix.compiler.binary }} --version ;
uname -a ;
export ;
shell: C:\cygwin\bin\bash.exe '{0}'
- name: Configure
run: ./configure --cc ${{ matrix.compiler.binary }} ${{ matrix.unhosted-flag }}
shell: C:\cygwin\bin\bash.exe '{0}'
- name: Compile
run: make library
- name: Install
run: make install
- name: Run Tests
run: make test ARGS='--log-visible debug'
#
# testing-watcom:
# runs-on: windows-latest
# strategy:
# fail-fast: false
# matrix:
# architecture:
# - i86
# - i186
# - i286
# - i386
# steps:
# - run: git config --global core.autocrlf input
# - uses: actions/checkout@v4
# - uses: cygwin/cygwin-install-action@v4
# with:
# packages: >-
# coreutils
# make
# - name: Install Watcom
# uses: open-watcom/setup-watcom@v0
# with:
# version: "2.0"
# - name: Configure
# run: ./configure --cc=owcc -m ${{ matrix.architecture }}
# shell: C:\cygwin\bin\bash.exe '{0}'
# - name: Compile
# run: make library
# - name: Test Installation
# run: sudo make install
# - name: Run Tests
# run: make test