mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2025-03-03 02:25:28 +00:00
function_finder ci
This commit is contained in:
parent
5bd3a3425d
commit
f4e3ebb978
61
.github/workflows/saturn-build.yml
vendored
61
.github/workflows/saturn-build.yml
vendored
@ -68,3 +68,64 @@ jobs:
|
||||
run: make build_saturn_native
|
||||
- name: Check saturn
|
||||
run: make check_saturn_native
|
||||
|
||||
function-finder-saturn:
|
||||
if: github.repository == 'Xeeynamo/sotn-decomp' && github.ref == 'refs/heads/master' && github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-and-test-saturn
|
||||
steps:
|
||||
- name: Clone main repo (PR)
|
||||
if: github.event_name == 'pull_request_target'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
submodules: false
|
||||
- name: Clone main repo
|
||||
if: github.event_name != 'pull_request_target'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
submodules: false
|
||||
- name: Clone dependencies
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: xeeynamo/sotn-decomp-dependencies
|
||||
ref: saturn
|
||||
token: ${{ secrets.SOTN_DECOMP_DEPENDENCIES_TOKEN }}
|
||||
path: 'disks/dependencies'
|
||||
- name: Setting up dependencies
|
||||
working-directory: disks
|
||||
run: |
|
||||
cat dependencies/* > dependencies.tar.gz
|
||||
tar -xf dependencies.tar.gz
|
||||
mv *.cue sotn.saturn.cue
|
||||
mv *.bin sotn.saturn.bin
|
||||
- name: Install bchunk 7zip
|
||||
run: |
|
||||
sudo apt-get install p7zip-full bchunk binutils-sh-elf
|
||||
- name: Prep
|
||||
run: make -j build_saturn_toolchain_native
|
||||
- name: Extract asm
|
||||
run: make extract_saturn
|
||||
|
||||
- name: Clone asset repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'gh-duplicates'
|
||||
path: 'gh-duplicates'
|
||||
- name: Set-up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install secondary pre-requirements
|
||||
run: pip3 install -r tools/requirements-python.txt
|
||||
- name: Generate duplicates and function report
|
||||
run: python3 tools/function_finder_saturn.py --no-fetch > gh-duplicates/functions_saturn.txt
|
||||
- name: Commit all reports
|
||||
run: |
|
||||
git config --global user.name 'GitHub Action'
|
||||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
git add -A
|
||||
git commit -m 'Update reports' || true
|
||||
git push
|
||||
working-directory: gh-duplicates
|
Loading…
x
Reference in New Issue
Block a user