-
Notifications
You must be signed in to change notification settings - Fork 61
81 lines (68 loc) · 2.39 KB
/
coverage.yml
File metadata and controls
81 lines (68 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Update Coverage
env:
GAMEMAKER_RUNNER_VERSION: "Version 2024.14.4.268"
RUN_FROM: ${{ github.workspace }}
GHIDRA_HOME: "/opt/ghidra"
on:
push:
branches: [main]
jobs:
update-coverage:
name: Update Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout Butterscotch repo
uses: actions/checkout@v4
with:
path: Butterscotch
token: ${{ secrets.LORITTA_PAT }}
- name: Checkout Butterscotch Wiki repo
uses: actions/checkout@v4
with:
repository: ButterscotchRunner/DataWin
path: Butterscotch.wiki
token: ${{ secrets.LORITTA_PAT }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- name: Cache Ghidra
id: cache-ghidra
uses: actions/cache@v4
with:
path: /opt/ghidra
key: ghidra-12.0.4-PUBLIC-20260303
- name: Install Ghidra
if: steps.cache-ghidra.outputs.cache-hit != 'true'
run: |
GHIDRA_URL="https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.0.4_build/ghidra_12.0.4_PUBLIC_20260303.zip"
GHIDRA_SHA256="c3b458661d69e26e203d739c0c82d143cc8a4a29d9e571f099c2cf4bda62a120"
wget -q "$GHIDRA_URL" -O /tmp/ghidra.zip
echo "${GHIDRA_SHA256} /tmp/ghidra.zip" | sha256sum -c -
sudo unzip -q /tmp/ghidra.zip -d /opt
sudo mv /opt/ghidra_12.0.4_PUBLIC "${GHIDRA_HOME}"
sudo chown -R "$USER":"$USER" "${GHIDRA_HOME}"
rm /tmp/ghidra.zip
- name: Checkout Butterscotch Wiki Generator repo
uses: actions/checkout@v4
with:
repository: MrPowerGamerBR/ButterscotchWikiGenerator
path: ButterscotchWikiGenerator
token: ${{ secrets.LORITTA_PAT }}
- uses: actions/cache@v4
with:
path: |
libyoyo.c
key: builtin-coverage-${{ env.GAMEMAKER_RUNNER_VERSION }}
- name: Run Butterscotch Wiki Generator
working-directory: ButterscotchWikiGenerator
run: ./gradlew run
- name: Commit and Push
continue-on-error: true
run: |
cd Butterscotch.wiki
git add .
git config user.name "Loritta Morenitta"
git config user.email 47356322+LorittaMorenitta@users.noreply.github.com
git commit -m "Update Coverage"
git push