From f6a4a27a93b6a7b95064a36718146a5b61c88c24 Mon Sep 17 00:00:00 2001 From: Bl00D4NGEL Date: Thu, 2 Jan 2025 21:18:21 +0100 Subject: [PATCH] fix: update .gitignore to not ignore .github directory --- .github/workflows/UpdateScore.yml | 59 +++++++++++++++++++++++ .github/workflows/VerifyNonEquivalent.yml | 51 ++++++++++++++++++++ .github/workflows/VerifyNonMatching.yml | 51 ++++++++++++++++++++ .gitignore | 1 + 4 files changed, 162 insertions(+) create mode 100644 .github/workflows/UpdateScore.yml create mode 100644 .github/workflows/VerifyNonEquivalent.yml create mode 100644 .github/workflows/VerifyNonMatching.yml diff --git a/.github/workflows/UpdateScore.yml b/.github/workflows/UpdateScore.yml new file mode 100644 index 00000000..69b32658 --- /dev/null +++ b/.github/workflows/UpdateScore.yml @@ -0,0 +1,59 @@ +name: Verify Build + +on: + push: + branches: [master] + +jobs: + build: + if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }} + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install packages + run: | + sudo apt-get update + sudo apt-get install -y build-essential pkg-config git python3 libssl-dev wget binutils-mips-linux-gnu + + - name: Get ROM + run: wget -q -O baseroms/dkr.z64 ${{secrets.ROMURL}} + + - name: Verify ROM + run: if [[ $(echo "0cb115d8716dbbc2922fda38e533b9fe63bb9670 baseroms/dkr.z64" | sha1sum -c --quiet -) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi + + - name: Download Recomp + run: | + wget -q -O ido-static-recomp.tar.gz https://github.com/decompals/ido-static-recomp/releases/download/v0.1/ido-5.3-recomp-ubuntu-latest.tar.gz + mkdir -p tools/ido-static-recomp/build5.3/out + tar -xvzf ido-static-recomp.tar.gz -C tools/ido-static-recomp/build5.3/out + + - name: Build Tools + run: | + cd tools + make -j4 + cd .. + + - name: Extract Assets + run: | + ./extract.sh + python3 tools/python/check_if_need_to_extract.py us_1.0 + + - name: Build ROM + run: make -j4 + + - name: Verify Build + run: if [[ $(sha1sum -c --quiet sha1/dkr.us_1.0.sha1) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi + + - name: Update Score + run: ./update-score.sh + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + add-paths: README.md + commit-message: "Update score" diff --git a/.github/workflows/VerifyNonEquivalent.yml b/.github/workflows/VerifyNonEquivalent.yml new file mode 100644 index 00000000..045814ad --- /dev/null +++ b/.github/workflows/VerifyNonEquivalent.yml @@ -0,0 +1,51 @@ +name: Verify Non Equivalent + +on: + pull_request_target: + branches: [master] + push: + branches: [master] + +jobs: + build: + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + + - name: Install packages + run: | + sudo apt-get update + sudo apt-get install -y build-essential pkg-config git python3 libssl-dev wget binutils-mips-linux-gnu + + - name: Get ROM + run: wget -q -O baseroms/dkr.z64 ${{secrets.ROMURL}} + + - name: Verify ROM + run: if [[ $(echo "0cb115d8716dbbc2922fda38e533b9fe63bb9670 baseroms/dkr.z64" | sha1sum -c --quiet -) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi + + - name: Download Recomp + run: | + wget -q -O ido-static-recomp.tar.gz https://github.com/decompals/ido-static-recomp/releases/download/v1.0/ido-5.3-recomp-linux.tar.gz + mkdir -p tools/ido-static-recomp/build5.3/out + tar -xvzf ido-static-recomp.tar.gz -C tools/ido-static-recomp/build5.3/out + + - name: Build Tools + run: | + cd tools + make -j4 + cd .. + + - name: Extract Assets + run: | + ./extract.sh + python3 tools/python/check_if_need_to_extract.py us_1.0 + + - name: Verify NON_EQUIVALENT + run: make -j4 NON_EQUIVALENT=1 diff --git a/.github/workflows/VerifyNonMatching.yml b/.github/workflows/VerifyNonMatching.yml new file mode 100644 index 00000000..273fee55 --- /dev/null +++ b/.github/workflows/VerifyNonMatching.yml @@ -0,0 +1,51 @@ +name: Verify Non Matching + +on: + pull_request_target: + branches: [master] + push: + branches: [master] + +jobs: + build: + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + + - name: Install packages + run: | + sudo apt-get update + sudo apt-get install -y build-essential pkg-config git python3 libssl-dev wget binutils-mips-linux-gnu + + - name: Get ROM + run: wget -q -O baseroms/dkr.z64 ${{secrets.ROMURL}} + + - name: Verify ROM + run: if [[ $(echo "0cb115d8716dbbc2922fda38e533b9fe63bb9670 baseroms/dkr.z64" | sha1sum -c --quiet -) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi + + - name: Download Recomp + run: | + wget -q -O ido-static-recomp.tar.gz https://github.com/decompals/ido-static-recomp/releases/download/v1.0/ido-5.3-recomp-linux.tar.gz + mkdir -p tools/ido-static-recomp/build5.3/out + tar -xvzf ido-static-recomp.tar.gz -C tools/ido-static-recomp/build5.3/out + + - name: Build Tools + run: | + cd tools + make -j4 + cd .. + + - name: Extract Assets + run: | + ./extract.sh + python3 tools/python/check_if_need_to_extract.py us_1.0 + + - name: Verify NON_MATCHING + run: make -j4 NON_MATCHING=1 diff --git a/.gitignore b/.gitignore index 948a3804..7f6a571b 100755 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ m2cfiles/ # Misc stuff that should be ignored. .*/ +!.github # Ignore .deb packages *.deb