Separate PR and Main builds (#64)

* Update Checkout and Upload-Artifact to V3

* Step 1, separate PRs and Mains

* Name: Main CI

* Step 2: Parallel PR and Main builds.

* Don't use v3 it doesn't work on my old server due to new versions of nodejs

Co-authored-by: Pavel <68122101+red-prig@users.noreply.github.com>
This commit is contained in:
VocalFan 2023-01-18 03:10:43 -05:00 committed by GitHub
parent 26fc53d6e9
commit 61f581ece8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 4 deletions

View File

@ -1,5 +1,5 @@
name: CI
name: Main CI
on:
push:
@ -7,9 +7,6 @@ on:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'
workflow_dispatch:

34
.github/workflows/pr.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: PR CI
on:
push:
pull_request:
branches:
- '*'
jobs:
build_windows:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Hash
shell: cmd
working-directory: ./
run: echo '%GITHUB_SHA:~0,7%' > tag.inc
- name: Compile
shell: cmd
working-directory: ./
run: |
lazbuild -B fpPS4.lpi > nul
strip fpPS4.exe
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: fpPS4
path: fpPS4.exe
if-no-files-found: warn