-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split pr workflows because of different trigger
- Loading branch information
Showing
2 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,32 +14,3 @@ jobs: | |
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
build: | ||
if: github.repository_owner == 'flybywiresim' | ||
runs-on: windows-latest | ||
env: | ||
RELEASE_ZIP_NAME: fbw-simbridge.zip | ||
BUILD_DIR_NAME: pr | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
- name: set Node version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Build Local API | ||
run: | | ||
npm install | ||
npm run typecheck | ||
npm run build:exec | ||
- name: Build ZIP File | ||
run: | | ||
node .\scripts\fragment.js | ||
mkdir .\${{env.BUILD_DIR_NAME}} | ||
Compress-Archive -Path .\build\* .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }} | ||
- name: Upload PR artifact | ||
uses: actions/upload-artifact@v4 | ||
if: github.event.pull_request.auto_merge == false | ||
with: | ||
name: flybywire-external-simbridge | ||
path: .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
|
||
jobs: | ||
build: | ||
name: Build and upload SimBridge | ||
if: github.repository_owner == 'flybywiresim' | ||
runs-on: windows-latest | ||
env: | ||
RELEASE_ZIP_NAME: fbw-simbridge.zip | ||
BUILD_DIR_NAME: pr | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
- name: set Node version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Build Local API | ||
run: | | ||
npm install | ||
npm run typecheck | ||
npm run build:exec | ||
- name: Build ZIP File | ||
run: | | ||
node .\scripts\fragment.js | ||
mkdir .\${{env.BUILD_DIR_NAME}} | ||
Compress-Archive -Path .\build\* .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }} | ||
- name: Upload PR artifact | ||
uses: actions/upload-artifact@v4 | ||
if: github.event.pull_request.auto_merge == false | ||
with: | ||
name: flybywire-external-simbridge | ||
path: .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }} |