Skip to content

Commit

Permalink
Checksum workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pgattic committed May 22, 2024
1 parent 12d9243 commit 42cd22c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Checksum

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: make

- name: Run check
run: make check

16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ROM_NAME := smb
ASM := asm6f/asm6f
ASM_DIR := asm6f
ASM := $(ASM_DIR)/asm6f

ASM_DIR_EXISTS := $(wildcard $(ASM_DIR))
ASM_EXISTS := $(wildcard $(ASM))

all: $(ROM_NAME).nes
Expand All @@ -13,13 +15,19 @@ $(ROM_NAME).nes: asm

clean:
rm -f $(ROM_NAME).nes $(ROM_NAME).lst
make clean -C asm6f
make clean -C $(ASM_DIR)

check: $(ROM_NAME).nes
@sha1sum -c smb.sha1

# Only build assembler if it doesn't already exist. Use its own makefile.
asm:
ifndef ASM_DIR_EXISTS
git clone https://github.com/freem/asm6f.git $(ASM_DIR)
endif
ifndef ASM_EXISTS
make -C asm6f
make -C $(ASM_DIR)
endif

.PHONY: all clean asm
.PHONY: all clean check asm

Binary file modified gfx/title.rle
Binary file not shown.
1 change: 1 addition & 0 deletions smb.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ea343f4e445a9050d4b4fbac2c77d0693b1d0922 smb.nes

0 comments on commit 42cd22c

Please sign in to comment.