-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (33 loc) · 938 Bytes
/
Copy pathz80doc-tests.yml
File metadata and controls
40 lines (33 loc) · 938 Bytes
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
name: z80doc-tests
on:
push:
paths:
- 'skoolkit/simulator.py'
- 'skoolkit/cmiosimulator.py'
- 'c/csimulator.c'
workflow_dispatch:
jobs:
z80doc-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sim: [--sim, --cmio, --csim, --ccmio]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Download z80doc.tap
run: |
wget https://github.com/raxoft/z80test/releases/download/v1.2/z80test-1.2.zip
unzip -j z80test-1.2.zip z80test-1.2/z80doc.tap
- if: matrix.sim == '--csim' || matrix.sim == '--ccmio'
name: Build csimulator
run: python setup.py build_ext -b .
- name: Run z80doc tests
run: |
export SKOOLKIT_HOME=$(pwd)
tools/z80-test-simulator.py ${{ matrix.sim }} z80doc.tap