summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-09-24 14:19:48 +0200
committerLéo Lam <leo@leolam.fr>2020-09-24 18:40:06 +0200
commitfd90123f88595c725491a715de6343df436b7e36 (patch)
tree3a15608c8f9fdd8ceba464aea0322382416bf0fd /.github/workflows
parent9e6e871859bacde6233857e9575dc4726cc132d8 (diff)
ci: Check matching functions for each push and PR build
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml6
-rw-r--r--.github/workflows/check.yml27
2 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 01319abf..61c2f182 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -25,3 +25,9 @@ jobs:
working-directory: ./build
- name: Build
run: ninja -C build
+ - uses: actions/upload-artifact@v2
+ with:
+ name: build
+ path: |
+ build/uking
+ data/uking_functions.csv
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
new file mode 100644
index 00000000..d6729aff
--- /dev/null
+++ b/.github/workflows/check.yml
@@ -0,0 +1,27 @@
+name: check
+on:
+ workflow_run:
+ workflows: ["build"]
+ types:
+ - completed
+jobs:
+ check-matchings:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: haya14busa/action-workflow_run-status@967ed83efa565c257675ed70cfe5231f062ddd94
+ - uses: actions/checkout@v2
+ - run: git submodule update --init --recursive
+ - name: Install pip
+ run: sudo apt update && sudo apt install -y python3-pip
+ - name: Install tool dependencies
+ run: sudo python3 -m pip install capstone colorama cxxfilt pyelftools gpg wget
+ - name: Download executable
+ run: wget https://static.zeldamods.org/botw/16A91992BBA71201E98756F3BC8F5D2F.elf.gpg
+ - name: Decrypt executable
+ run: gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.leo_secret }}" --output data/main.elf 16A91992BBA71201E98756F3BC8F5D2F.elf.gpg
+ - name: Download artifacts
+ uses: dawidd6/action-download-artifact@3cd20b2b63293848b29e22223f515baf725ed98f
+ with:
+ workflow: build.yml
+ - name: Check matchings
+ run: tools/check.py