mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-20 04:29:14 +01:00
CI: Split workflow execution paths (#337)
This commit is contained in:
parent
ce406e9c5d
commit
763c714653
19
.github/workflows/validate.yml
vendored
19
.github/workflows/validate.yml
vendored
@ -1,24 +1,14 @@
|
|||||||
name: validate
|
name: validate
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches:
|
secrets:
|
||||||
- dev
|
ZRE_REPO_WITH_PAT:
|
||||||
pull_request:
|
required: true
|
||||||
types: [opened, synchronize]
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
authorize:
|
|
||||||
environment:
|
|
||||||
${{ github.event_name == 'pull_request_target' &&
|
|
||||||
github.event.pull_request.head.repo.full_name != github.repository &&
|
|
||||||
'external' || 'internal' }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo ✓
|
|
||||||
build-linux:
|
build-linux:
|
||||||
needs: authorize
|
|
||||||
runs-on: ${{ matrix.arch == 'x64' && matrix.os || format('blaze/{0}', matrix.os) }}
|
runs-on: ${{ matrix.arch == 'x64' && matrix.os || format('blaze/{0}', matrix.os) }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -107,7 +97,6 @@ jobs:
|
|||||||
name: Zelda64Recompiled-AppImage-${{ runner.arch }}-${{ matrix.type }}
|
name: Zelda64Recompiled-AppImage-${{ runner.arch }}-${{ matrix.type }}
|
||||||
path: Zelda64Recompiled-*.AppImage
|
path: Zelda64Recompiled-*.AppImage
|
||||||
build-windows:
|
build-windows:
|
||||||
needs: authorize
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
19
.github/workflows/validate_external.yml
vendored
Normal file
19
.github/workflows/validate_external.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: validate-external
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
jobs:
|
||||||
|
authorize:
|
||||||
|
if: github.repository != github.event.pull_request.head.repo.full_name
|
||||||
|
environment:
|
||||||
|
${{ github.event_name == 'pull_request_target' &&
|
||||||
|
github.event.pull_request.head.repo.full_name != github.repository &&
|
||||||
|
'external' || 'internal' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo ✓
|
||||||
|
build:
|
||||||
|
needs: authorize
|
||||||
|
uses: ./.github/workflows/validate.yml
|
||||||
|
secrets:
|
||||||
|
ZRE_REPO_WITH_PAT: ${{ secrets.ZRE_REPO_WITH_PAT }}
|
12
.github/workflows/validate_internal.yml
vendored
Normal file
12
.github/workflows/validate_internal.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: validate-internal
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.repository == github.event.pull_request.head.repo.full_name
|
||||||
|
uses: ./.github/workflows/validate.yml
|
||||||
|
secrets: inherit
|
Loading…
Reference in New Issue
Block a user