Skip to content

Commit

Permalink
Merge branch 'main' of github.com:SingleStepTests/z80
Browse files Browse the repository at this point in the history
  • Loading branch information
raddad772 committed Jun 4, 2024
2 parents 9967d52 + 492c705 commit 2040911
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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 -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
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![](https://github.com/SingleStepTests/z80/actions/workflows/validate.yml/badge.svg)](https://github.com/SingleStepTests/z80/actions/workflows/validate.yml)

Very quick overview

Each .json file represents an instruction sequence. Each one contains 1000 tests in this format:
Expand Down

0 comments on commit 2040911

Please sign in to comment.