mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-13 02:12:22 -06:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 531a5b5d05 | |||
| 67713fab06 |
20
.github/workflows/build.yaml
vendored
20
.github/workflows/build.yaml
vendored
@@ -23,6 +23,9 @@ jobs:
|
|||||||
- os: macos-13
|
- os: macos-13
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
artifact_name: pacman
|
artifact_name: pacman
|
||||||
|
- os: macos-latest
|
||||||
|
target: aarch64-apple-darwin
|
||||||
|
artifact_name: pacman
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
target: x86_64-pc-windows-gnu
|
target: x86_64-pc-windows-gnu
|
||||||
artifact_name: pacman.exe
|
artifact_name: pacman.exe
|
||||||
@@ -108,8 +111,21 @@ jobs:
|
|||||||
version: 8
|
version: 8
|
||||||
run_install: true
|
run_install: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build with Emscripten
|
||||||
run: ./build.sh -er # release mode, skip emsdk
|
run: |
|
||||||
|
cargo build --target=wasm32-unknown-emscripten --release
|
||||||
|
|
||||||
|
- name: Assemble
|
||||||
|
run: |
|
||||||
|
echo "Generating CSS"
|
||||||
|
pnpx postcss-cli ./assets/site/styles.scss -o ./assets/site/build.css
|
||||||
|
|
||||||
|
echo "Copying WASM files"
|
||||||
|
|
||||||
|
mkdir -p dist
|
||||||
|
cp assets/site/{build.css,favicon.ico,index.html} dist
|
||||||
|
output_folder="target/wasm32-unknown-emscripten/release"
|
||||||
|
cp $output_folder/pacman.{wasm,js,data} dist
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user