Update actions to seperate builds for PR's versus locally

This commit is contained in:
Ryan Myers
2022-05-11 14:51:52 -04:00
parent 09e85a2d3f
commit dd8aadff0b
2 changed files with 35 additions and 1 deletions
+3 -1
View File
@@ -8,12 +8,14 @@ on:
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: |
+32
View File
@@ -0,0 +1,32 @@
name: Verify PR
on:
pull_request_target:
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
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
- name: Get ROM
run: wget -q -O baseroms/dkr.z64 ${{secrets.ROMURL}}
- 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