forked from SingleStepTests/z80
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 938 Bytes
/
validate.yml
File metadata and controls
41 lines (34 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
41
name: Validate
on:
push:
paths:
- '.github/workflows/validate.yml'
- 'v1/*.json'
pull_request:
paths:
- '.github/workflows/validate.yml'
- 'v1/*.json'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install dependencies
run: |
curl -L https://zxe.io/scripts/add-zxe-apt-repo.sh | sudo sh
sudo apt-get update
sudo apt-get -y install libz80-dev
gem install z80
- name: Download runner
run: |
curl -L $(
curl -s https://api.github.com/repos/redcode/run-jsmoo-z80-test/releases/latest |
grep tar.xz\" | grep browser_download_url | cut -d : -f 2,3 | tr -d '" '
) | xz -cd | tar --strip-components=1 -xf -
- name: Run tests
run:
./run-jsmoo-z80-test v1/*.json