-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: Add action to test re-assembly
- Loading branch information
1 parent
422dc88
commit d916874
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Reassemble | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
reassemble: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install dependencies | ||
run: pip install -r src/scripts/requirements.txt | ||
|
||
- name: Checkout UASM repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: Terraspace/UASM | ||
path: UASM | ||
|
||
- name: Apply patches and build UASM | ||
run: | | ||
cd $GITHUB_WORKSPACE/UASM | ||
git am $GITHUB_WORKSPACE/bw1-decomp/patches/uasm/* | ||
make -f Makefile-Linux.mak | ||
- name: Build bw1-decomp project | ||
run: | | ||
cmake -DCMAKE_LINKER=/usr/i686-w64-mingw32/bin/ld -DCMAKE_ASM_COMPILER=$GITHUB_WORKSPACE/UASM/GccUnixR/uasm -Bbuild | ||
cmake --build build -j4 |