mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-07 01:15:48 -06:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 03b2c5a659 | |||
| 64e226be70 | |||
| f998ddd344 | |||
| b2ad8e7afe |
8
.github/workflows/deploy.yaml
vendored
8
.github/workflows/deploy.yaml
vendored
@@ -1,13 +1,13 @@
|
|||||||
name: Github Pages
|
name: Github Pages
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-github-pages:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2 # repo checkout
|
- uses: actions/checkout@v2 # repo checkout
|
||||||
|
|
||||||
|
|||||||
7
BUILD.md
Normal file
7
BUILD.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Building Pac-Man
|
||||||
|
|
||||||
|
## GitHub Actions Workflow
|
||||||
|
|
||||||
|
1. Build workflow produces executables & WASM files for all platforms
|
||||||
|
2. Uploaded as artifacts
|
||||||
|
3. Deployment workflow downloads artifacts and uploads to GitHub Pages
|
||||||
@@ -1,11 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
|
|
||||||
|
echo "Building WASM with Emscripten"
|
||||||
cargo build --target=wasm32-unknown-emscripten --release
|
cargo build --target=wasm32-unknown-emscripten --release
|
||||||
|
|
||||||
|
echo "Copying release files to dist/"
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
mkdir -p dist/deps
|
||||||
|
|
||||||
cp target/wasm32-unknown-emscripten/release/pacman.wasm dist
|
output_folder="target/wasm32-unknown-emscripten/release"
|
||||||
cp target/wasm32-unknown-emscripten/release/pacman.js dist
|
cp $output_folder/pacman.wasm dist
|
||||||
cp target/wasm32-unknown-emscripten/release/deps/pacman.data dist/deps
|
cp $output_folder/pacman.js dist
|
||||||
|
cp $output_folder/deps/pacman.data dist/deps
|
||||||
cp assets/index.html dist
|
cp assets/index.html dist
|
||||||
Reference in New Issue
Block a user