Skip to content

Commit

Permalink
ci: recognise external downloads in installer (#7062)
Browse files Browse the repository at this point in the history
* ci: recognise external downloads in installer

* ci: zip artifacts only once

* feat: add source to installManifest to select the right version

* fix: missing space

* fix: keep top folder in PR artifact

Co-authored-by: Andreas Guther <[email protected]>
  • Loading branch information
FoxtrotSierra6829 and aguther committed May 9, 2022
1 parent cf8da73 commit 388a0a4
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 101 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
run: |
./scripts/dev-env/run.sh node ./scripts/fragment.js
cp ./build-modules/modules.json ./flybywire-aircraft-a320-neo/install.json
./scripts/dev-env/run.sh node ./scripts/install-source.js
mkdir ./${{ env.BUILD_DIR_NAME }}
zip -r ./${{ env.BUILD_DIR_NAME }}/${{ env.EXPERIMENTAL_ZIP_NAME }} ./flybywire-aircraft-a320-neo/
- name: Upload to Bunny CDN
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
run: |
./scripts/dev-env/run.sh node ./scripts/fragment.js
cp ./build-modules/modules.json ./flybywire-aircraft-a320-neo/install.json
./scripts/dev-env/run.sh node ./scripts/install-source.js
mkdir ./${{ env.BUILD_DIR_NAME }}
zip -r ./${{ env.BUILD_DIR_NAME }}/${{ env.MASTER_ZIP_NAME }} ./flybywire-aircraft-a320-neo/
- name: Get and delete vmaster pre-release zip asset
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
env:
A32NX_PRODUCTION_BUILD: 1
A32NX_INSTRUMENTS_BUILD_WORKERS: 2
ZIP_NAME: A32NX.zip
BUILD_DIR_NAME: zip-build
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand All @@ -62,11 +60,14 @@ jobs:
run: |
./scripts/dev-env/run.sh ./scripts/setup.sh
./scripts/dev-env/run.sh ./scripts/build.sh --no-tty -j 4
- name: Generate ZIP file
- name: Generate install.json
run: |
mkdir ./${{ env.BUILD_DIR_NAME }}
zip -r ./${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }} ./flybywire-aircraft-a320-neo/
- uses: actions/upload-artifact@v2
./scripts/dev-env/run.sh node ./scripts/fragment.js
cp ./build-modules/modules.json ./flybywire-aircraft-a320-neo/install.json
./scripts/dev-env/run.sh node ./scripts/install-source.js
- name: Upload PR artifact
uses: actions/upload-artifact@v2
with:
name: A32NX
path: ${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }}
path: ./**/flybywire-aircraft-a320-neo/
6 changes: 5 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pre release
on:
push:
tags:
- 'v*-rc*'
- "v*-rc*"

jobs:
build:
Expand All @@ -28,6 +28,10 @@ jobs:
./scripts/dev-env/run.sh ./scripts/build.sh --no-tty -j 4
- name: Build ZIP file
run: |
./scripts/dev-env/run.sh node ./scripts/fragment.js
cp ./build-modules/modules.json ./flybywire-aircraft-a320-neo/install.json
./scripts/dev-env/run.sh node ./scripts/install-source.js
mkdir ./${{ env.BUILD_DIR_NAME }}
zip -r ./${{ env.BUILD_DIR_NAME }}/${{ env.RELEASE_ZIP_NAME }} ./flybywire-aircraft-a320-neo/
- name: Create Release
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run: |
./scripts/dev-env/run.sh node ./scripts/fragment.js
cp ./build-modules/modules.json ./flybywire-aircraft-a320-neo/install.json
./scripts/dev-env/run.sh node ./scripts/install-source.js
mkdir ./${{ env.BUILD_DIR_NAME }}
zip -r ./${{ env.BUILD_DIR_NAME }}/${{ env.RELEASE_ZIP_NAME }} ./flybywire-aircraft-a320-neo/
- name: Create Release
Expand Down
176 changes: 84 additions & 92 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 388a0a4

Please sign in to comment.