Skip to content

Commit 72e2f04

Browse files
authored
Basic CI Testing (#24)
Just runs the file through rgbasm to make sure the syntax is correct and there aren't any errors.
1 parent 4be8ca5 commit 72e2f04

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/testing.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Testing
2+
on:
3+
- push
4+
- pull_request
5+
6+
jobs:
7+
macos-testing:
8+
runs-on: macos-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Install RGBDS
12+
run: |
13+
brew install rgbds
14+
- name: Run rgbasm on hardware.inc
15+
run: |
16+
rgbasm hardware.inc
17+
18+
windows-testing:
19+
runs-on: windows-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Install RGBDS
23+
run: |
24+
# Find the URL of the latest Win64 release with the GitHub API
25+
$githubLatestReleasesAPI = "https://api.github.com/repos/gbdev/rgbds/releases/latest"
26+
$githubReleaseURLs = ((Invoke-WebRequest $githubLatestReleasesAPI) | ConvertFrom-Json).assets.browser_download_url
27+
$githubWinReleaseURL = ($githubReleaseURLs | Select-String "win64").ToString()
28+
# Download latest release
29+
Invoke-WebRequest $githubWinReleaseURL -OutFile rgbds.zip
30+
Expand-Archive rgbds.zip
31+
- name: Run rgbasm on hardware.inc
32+
run: |
33+
rgbds/rgbasm.exe hardware.inc

0 commit comments

Comments
 (0)