Skip to content

Commit

Permalink
CI: Run gen_asm (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl authored Jul 28, 2021
1 parent 9ea6839 commit c96650b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ jobs:
# Move blobs
Move-Item '.\tools\blobs\main.dol' '.\artifacts\orig\pal\main.dol'
Move-Item '.\tools\blobs\StaticR.rel' '.\artifacts\orig\pal\StaticR.rel'
# Clean up
Remove-Item '.\tools.zip'
Remove-Item -LiteralPath 'tools2' -Force -Recurse
- name: Re-generate assembly
run: python -m mkwutil.gen_asm

# https://stackoverflow.com/a/56389437
- name: Verify assembly still the same
run: |
$ChangedFiles = $(git status --porcelain | Measure-Object | Select-Object -expand Count)
if ($ChangedFiles -gt 0) {
git status --porcelain
throw "Found $ChangedFiles changed files! Did you run gen_asm?"
}
- name: Build mkw
shell: bash
Expand Down

0 comments on commit c96650b

Please sign in to comment.