mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-05-10 11:01:36 +00:00
Try to split workflow paths
This commit is contained in:
parent
3e5efc935e
commit
7fd70c3611
3 changed files with 41 additions and 18 deletions
22
.github/workflows/validate.yml
vendored
22
.github/workflows/validate.yml
vendored
|
|
@ -1,24 +1,11 @@
|
||||||
name: validate
|
name: validate
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches:
|
secrets:
|
||||||
- dev
|
ZRE_REPO_WITH_PAT:
|
||||||
pull_request:
|
required: true
|
||||||
types: [opened, synchronize]
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
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 +94,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:
|
||||||
|
|
|
||||||
22
.github/workflows/validate_external.yml
vendored
Normal file
22
.github/workflows/validate_external.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: validate
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
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 }}
|
||||||
15
.github/workflows/validate_internal.yml
vendored
Normal file
15
.github/workflows/validate_internal.yml
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
name: validate
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.repository == github.event.pull_request.head.repo.full_name
|
||||||
|
uses: ./.github/workflows/validate.yml
|
||||||
|
secrets: inherit
|
||||||
Loading…
Add table
Reference in a new issue