Merge pull request #227 from Ryan-Myers/CI_In_Depth

Update workflows
This commit is contained in:
David Benepe
2022-05-13 12:04:58 -04:00
committed by GitHub
2 changed files with 50 additions and 6 deletions
+23 -1
View File
@@ -20,10 +20,32 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config git python3 libssl-dev wget libcapstone-dev
sudo apt-get install -y build-essential pkg-config git python3 libssl-dev wget libcapstone-dev 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: Build Recomp
run: |
cd tools/ido-static-recomp/
python3 build.py ido/5.3 -O2
cp build5.3/out/usr/bin/cc build5.3/out/cc
cp build5.3/out/usr/lib/* build5.3/out/
cd ../../
- name: Build Tools
run: |
cd tools
make
cd ..
- name: Extract Assets
run: |
./extract.sh
python3 tools/python/check_if_need_to_extract.py us_1.0
- name: Build ROM
run: make
+27 -5
View File
@@ -16,17 +16,39 @@ jobs:
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 libcapstone-dev
sudo apt-get install -y build-essential pkg-config git python3 libssl-dev wget libcapstone-dev 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: Build Recomp
run: |
cd tools/ido-static-recomp/
python3 build.py ido/5.3 -O2
cp build5.3/out/usr/bin/cc build5.3/out/cc
cp build5.3/out/usr/lib/* build5.3/out/
cd ../../
- name: Build Tools
run: |
cd tools
make
cd ..
- name: Extract Assets
run: |
./extract.sh
python3 tools/python/check_if_need_to_extract.py us_1.0
- name: Build ROM
run: make
- name: Verify Build
run: if [[ $(sha1sum -c --quiet sha1/dkr.us_1.0.sha1) = "" ]]; then echo "Signature OK"; else echo "Failed"; exit 1; fi