summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2021-06-20 12:11:37 -0400
committerRangi <remy.oukaour+rangi@gmail.com>2021-06-20 12:11:37 -0400
commit9f7395cb91010663d58e59b10b91f61fdc816d85 (patch)
tree17d7b936219eaf19d9a734cda7254535542048a1
parent754d9064c977f117d57030978f61178f5f5644f6 (diff)
Switch from Travis CI to GitHub Actions
-rw-r--r--.github/workflows/main.yml49
-rw-r--r--.travis.yml25
-rw-r--r--README.md6
3 files changed, 52 insertions, 28 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..3562960
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,49 @@
+name: CI
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@master
+
+ - name: Checkout rgbds
+ uses: actions/checkout@master
+ with:
+ path: rgbds
+ ref: v0.5.1
+ repository: gbdev/rgbds
+
+ - name: Install rgbds
+ working-directory: rgbds
+ run: |
+ sudo make install
+
+ - name: Remove rgbds
+ run: |
+ rm -rf rgbds
+
+ - name: Cache baserom
+ id: cache-baserom
+ uses: actions/cache@master
+ with:
+ path: baserom.gb
+ key: ${{ runner.os }}-baserom
+
+ - name: Download baserom
+ if: steps.cache-baserom.outputs.cache-hit != 'true'
+ run: |
+ sudo apt-get install wget p7zip-full
+ wget -O roms.7z 'https://tcrf.net/images/3/33/Pok%C3%A9mon_Gold_-_Spaceworld_1997_Demo_%28Debug%29.7z'
+ 7z e roms.7z
+ mv P*\(Debug\).sgb baserom.gb
+ rm -f roms.7z P*\(Header\ Fixed\).sgb
+
+ - name: Compare
+ run: |
+ make -j$(nproc) compare
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 0af363d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: c
-os: linux
-install:
- - |-
- ( cd
- git clone -b v0.5.1 --depth=1 https://github.com/gbdev/rgbds
- sudo make -C rgbds install
- rm -rf rgbds
- sudo apt-get install wget p7zip-full
- )
-before_script:
- - |-
- function check_status() {
- if ! git diff-index --quiet --ignore-submodules=all HEAD --; then
- echo 'Uncommitted changes detected:';
- git diff-index HEAD --;
- return 1;
- fi;
- }
- - wget -O roms.7z 'https://tcrf.net/images/3/33/Pok%C3%A9mon_Gold_-_Spaceworld_1997_Demo_%28Debug%29.7z'
- - 7z e roms.7z
- - mv P*\(Debug\).sgb baserom.gb
- - rm -f roms.7z P*\(Header\ Fixed\).sgb
-script:
- - make -j2 compare
diff --git a/README.md b/README.md
index fb8d773..8f90017 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Pokémon Gold and Silver: Space World 1997 Demo [![Build Status][travis-badge]][travis]
+# Pokémon Gold and Silver: Space World 1997 Demo [![Build Status][ci-badge]][ci]
This is a work-in-progress disassembly of the Pokémon Gold and Pokémon Silver prototypes demoed at Space World 1997.
@@ -38,5 +38,5 @@ Other disassembly projects:
[pokeemerald]: https://github.com/pret/pokeemerald
[discord]: https://discord.gg/d5dubZ3
[irc]: https://kiwiirc.com/client/irc.freenode.net/?#pret
-[travis]: https://travis-ci.org/pret/pokegold-spaceworld
-[travis-badge]: https://travis-ci.org/pret/pokegold-spaceworld.svg?branch=master
+[ci]: https://github.com/pret/pokegold-spaceworld/actions
+[ci-badge]: https://github.com/pret/pokegold-spaceworld/actions/workflows/main.yml/badge.svg