Skip to content

Commit 7da2bfd

Browse files
Added GH Actions for report and build check progress and replaced wine with wibo
1 parent 308841e commit 7da2bfd

5 files changed

Lines changed: 91 additions & 10 deletions

File tree

.github/workflows/check.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Check Executables Match
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build:
8+
if: github.repository_owner == 'iwillcraft-m0d'
9+
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Checkout Elf Repository
16+
uses: actions/checkout@v4
17+
with:
18+
repository: iwillcraft-m0d/dogcomp-elfs
19+
token: ${{ secrets.k4d }}
20+
path: elf
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: "3.x"
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -U -r requirements.txt
31+
32+
- name: Setup build environment
33+
run: |
34+
sudo apt-get install binutils-mips-linux-gnu
35+
tools/setup_prodg_linux.sh
36+
37+
- name: Configure and generate report
38+
run: |
39+
python configure.py
40+
ninja

.github/workflows/progress.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Generate Progress Report
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
if: github.repository_owner == 'iwillcraft-m0d'
11+
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Checkout Elf Repository
18+
uses: actions/checkout@v4
19+
with:
20+
repository: iwillcraft-m0d/dogcomp-elfs
21+
token: ${{ secrets.k4d }}
22+
path: elf
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: "3.x"
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -U -r requirements.txt
33+
34+
- name: Setup build environment
35+
run: |
36+
sudo apt-get install binutils-mips-linux-gnu
37+
tools/setup_prodg_linux.sh
38+
39+
- name: Configure and generate report
40+
run: |
41+
python configure.py -diff
42+
ninja
43+
./tools/objdiff-cli report generate > report.json
44+
45+
- name: Upload Artifact
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: SCES_512.48_report
49+
path: ./report.json

README.MD

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ pip3 install -U -r requirements.txt
4040
```
4141

4242
## 4. Setup build environment
43-
Setup wine:
44-
45-
```bash
46-
sudo dpkg --add-architecture i386 && \
47-
sudo apt-get update && \
48-
sudo apt-get install wine32
49-
```
50-
5143
Install the MIPS assembler:
5244

5345
```bash

configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
)
5353

5454
if sys.platform == "linux" or sys.platform == "linux2":
55-
COMPILE_CMD_C = f"wine {COMPILE_CMD_C}"
56-
COMPILE_CMD_CPP = f"wine {COMPILE_CMD_CPP}"
55+
COMPILE_CMD_C = f"tools/wibo {COMPILE_CMD_C}"
56+
COMPILE_CMD_CPP = f"tools/wibo {COMPILE_CMD_CPP}"
5757

5858

5959
CATEGORY_MAP = {

tools/wibo

3.96 MB
Binary file not shown.

0 commit comments

Comments
 (0)