diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8f0af4b7b3d..e7844f00900 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -38,12 +38,13 @@ jobs: ./scripts/dev-env/run.sh ./scripts/setup.sh --clean ./scripts/dev-env/run.sh ./scripts/build_a32nx.sh --no-tty -j 4 rm -rf fbw-a32nx/src + docker system prune -af - name: Build ZIP files run: | df -h - ./scripts/dev-env/run.sh node ./scripts/fragment_a32nx.js + node ./scripts/fragment_a32nx.js cp ./fbw-a32nx/out/build-modules/modules.json ./fbw-a32nx/out/flybywire-aircraft-a320-neo/install.json - ./scripts/dev-env/run.sh node ./scripts/install-source_a32nx.js + node ./scripts/install-source_a32nx.js mkdir ./${{ env.BUILD_DIR_NAME }} cd ./fbw-a32nx/out/ zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.MASTER_ZIP_NAME }} ./flybywire-aircraft-a320-neo/ diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fb7447543df..5442b076087 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -65,14 +65,14 @@ jobs: ./scripts/dev-env/run.sh ./scripts/setup.sh --clean ./scripts/dev-env/run.sh ./scripts/build.sh --no-tty -j 4 rm -rf fbw-a32nx/src + docker system prune -af - name: Generate install.json if: github.event.pull_request.auto_merge == false run: | df -h - ./scripts/dev-env/run.sh node ./scripts/fragment_a32nx.js - + node ./scripts/fragment_a32nx.js cp ./fbw-a32nx/out/build-modules/modules.json ./fbw-a32nx/out/flybywire-aircraft-a320-neo/install.json - ./scripts/dev-env/run.sh node ./scripts/install-source_a32nx.js + node ./scripts/install-source_a32nx.js - name: Upload PR artifact uses: actions/upload-artifact@v2 if: github.event.pull_request.auto_merge == false