Create GitHub Action to validate hash XML files (#7323)

* Create GitHub Action to validate hash XML files

This GitHub Action will run on any commit or pull request that changes a file in the "hash" directory. It will do a simple xmllint run for the HSI files and will check the softwarelist XML files against their DTD.

* Delete c64_flop_clcracked.xml

No content, can be recreated if needed.

* Remove references to removed softwarelist c64_flop_clcracked.xml
This commit is contained in:
Dirk Best 2020-10-16 15:13:51 +02:00 committed by GitHub
parent b95bc87275
commit 8b59533952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 14 deletions

23
.github/workflows/hash.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: XML validation
on:
push:
paths:
- 'hash/*'
pull_request:
paths:
- 'hash/*'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxml2-utils
- name: Validate (HSI)
run: for x in hash/*.hsi ; do xmllint --noout "$x" ; done
- name: Validate (XML)
run: for x in hash/*.xml ; do xmllint --noout --valid "$x" ; done

View file

@ -1,8 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE softwarelist SYSTEM "softwarelist.dtd">
<!--
license:CC0
-->
<softwarelist name="c64_flop_clcracked" description="Commodore 64 cleanly cracked disks">
</softwarelist>

View file

@ -1756,9 +1756,8 @@ void c128_state::ntsc(machine_config &config)
SOFTWARE_LIST(config, "cart_list_c64").set_original("c64_cart").set_filter("NTSC");
SOFTWARE_LIST(config, "cass_list_c64").set_original("c64_cass").set_filter("NTSC");
SOFTWARE_LIST(config, "cart_list_vic10").set_original("vic10").set_filter("NTSC");
// disk softlist split into originals, cleanly cracked, and misc (homebrew and defaced cracks)
// disk softlist split into originals and misc (homebrew and cracks)
SOFTWARE_LIST(config, "flop525_orig").set_original("c64_flop_orig").set_filter("NTSC");
SOFTWARE_LIST(config, "flop525_clean").set_compatible("c64_flop_clcracked").set_filter("NTSC");
SOFTWARE_LIST(config, "flop525_misc").set_compatible("c64_flop_misc").set_filter("NTSC");
// function ROM

View file

@ -1563,9 +1563,8 @@ void c64_state::ntsc(machine_config &config)
SOFTWARE_LIST(config, "cart_list_vic10").set_original("vic10").set_filter("NTSC");
SOFTWARE_LIST(config, "cart_list_c64").set_original("c64_cart").set_filter("NTSC");
SOFTWARE_LIST(config, "cass_list").set_original("c64_cass").set_filter("NTSC");
// disk softlist split into originals, cleanly cracked, and misc (homebrew and defaced cracks)
// disk softlist split into originals and misc (homebrew and cracks)
SOFTWARE_LIST(config, "flop525_orig").set_original("c64_flop_orig").set_filter("NTSC");
SOFTWARE_LIST(config, "flop525_clean").set_compatible("c64_flop_clcracked").set_filter("NTSC");
SOFTWARE_LIST(config, "flop525_misc").set_compatible("c64_flop_misc").set_filter("NTSC");
// internal ram
@ -1737,9 +1736,8 @@ void c64_state::pal(machine_config &config)
SOFTWARE_LIST(config, "cart_list_vic10").set_original("vic10").set_filter("PAL");
SOFTWARE_LIST(config, "cart_list_c64").set_original("c64_cart").set_filter("PAL");
SOFTWARE_LIST(config, "cass_list").set_original("c64_cass").set_filter("PAL");
// disk softlist split into originals, cleanly cracked, and misc (homebrew and defaced cracks)
// disk softlist split into originals and misc (homebrew and cracks)
SOFTWARE_LIST(config, "flop525_orig").set_original("c64_flop_orig").set_filter("PAL");
SOFTWARE_LIST(config, "flop525_clean").set_compatible("c64_flop_clcracked").set_filter("PAL");
SOFTWARE_LIST(config, "flop525_misc").set_compatible("c64_flop_misc").set_filter("PAL");
// internal ram