Validate commit when making changes

This commit is contained in:
Luciano Ciccariello 2022-08-26 18:05:13 +01:00
parent 994727ecd5
commit a2002cb431

34
.github/workflows/validate.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Validate decompiled code
on:
push:
paths-ignore:
- '*.md'
- '**/*.md'
pull_request:
paths-ignore:
- '*.md'
- '**/*.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install requirements
run: sudo apt-get install gcc-mipsel-linux-gnu
- name: Clone main repository
uses: actions/checkout@v2
with:
submodules: true
- name: Clone game data repository
uses: actions/checkout@v2
with:
repository: xeeynamo/sotn-decomp-private
token: ${{ secrets.SOTN_DECOM_PRIVATE_REPO_TOKEN }}
path: 'data'
- name: Copy game data
run: cp -r data/psx_us10/* .
- name: Split game data
run: make extract
- name: Build and test
run: make all