Skip to content

Commit

Permalink
use ssh url
Browse files Browse the repository at this point in the history
for city-game
  • Loading branch information
elihunter173 committed Jan 28, 2024
1 parent a0673f2 commit b702f6c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions scripts/build-subprojects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ HERE="$(dirname "${BASH_SOURCE[0]}")"
cd "$HERE"
REPO_DIR="$(git rev-parse --show-toplevel)"

subproject() {
proj="$1"
dir="$(mktemp -d -t "$proj".XXX)"
echo "Building subproject [directory=$dir]"
git clone "https://github.com/elihunter173/$proj.git" "$dir"
cd "$dir"
}

ASTEROIDS="$(mktemp -d -t asteroids-3d.XXX)"
echo "Building asteroids-3d [directory=$ASTEROIDS]"
git clone https://github.com/elihunter173/asteroids-3d.git "$ASTEROIDS"
cd "$ASTEROIDS"
subproject asteroids-3d
npm install --production
npm run build
cp -r ./dist "$REPO_DIR/static/asteroids"

CITY_GAME="$(mktemp -d -t city-game.XXX)"
echo "Building city-game [directory=$CITY_GAME]"
eval `ssh-agent -s`
ssh-add - <<< "$CITY_GAME_PRIVATE_DEPLOY_KEY"
subproject city-game
git clone git@github.com:elihunter173/city-game.git "$CITY_GAME"
cd "$CITY_GAME"
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --no-typescript --target web \
--out-dir ./out/ \
Expand Down

0 comments on commit b702f6c

Please sign in to comment.