Skip to content

Commit

Permalink
Don't build Pongo by default
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Jan 9, 2022
1 parent d592a5e commit e6d9675
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Get build config
id: buildconfig
shell: bash
run: |
source ./.env
echo "::set-output name=pongo::${PONGO_LATEST}"
-
name: Install build dependencies
run: |
Expand Down Expand Up @@ -59,6 +66,7 @@ jobs:
)
-
name: Building pongoOS
if: "contains(steps.buildconfig.outputs.pongo, 'YES')"
run: |
(
cd assets
Expand Down
11 changes: 6 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,12 @@ cp assets/PongoConsolidated.bin work/chroot/opt/a9x
)
if [ "$GITHUB_ACTIONS" = true ]; then
cp assets/odysseyra1n/odysseyra1n_resources.tar.zst work/chroot/opt/odysseyra1n

chroot work/chroot apt-get install -y --no-install-recommends python3
find assets/pongoOS/build/* -maxdepth 1 -type f -exec cp "{}" work/chroot/opt/pongoOS-latest/ \;
find assets/pongoOS/scripts/* -maxdepth 1 -type f -name '*.py' -exec cp "{}" work/chroot/usr/local/bin \;
rename -f 's/\.py$//' work/chroot/usr/local/bin/*.py
if [ "$PONGO_LATEST" = 'YES' ]; then
chroot work/chroot apt-get install -y --no-install-recommends python3
find assets/pongoOS/build/* -maxdepth 1 -type f -exec cp "{}" work/chroot/opt/pongoOS-latest/ \;
find assets/pongoOS/scripts/* -maxdepth 1 -type f -name '*.py' -exec cp "{}" work/chroot/usr/local/bin \;
rename -f 's/\.py$//' work/chroot/usr/local/bin/*.py
fi
else
(
cd work/chroot/opt/odysseyra1n
Expand Down

0 comments on commit e6d9675

Please sign in to comment.