Skip to content

Commit

Permalink
Merge pull request #279 from janhohenheim/remove-wasm-mention
Browse files Browse the repository at this point in the history
Remove Wasm mentions

Former-commit-id: 95203c5
  • Loading branch information
janhohenheim authored Jan 22, 2024
2 parents 30844d9 + 568618e commit 021ec09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,39 +173,3 @@ jobs:
asset_name: ${{ env.GAME_EXECUTABLE_NAME }}_${{ steps.tag.outputs.tag }}_windows.msi
tag: ${{ github.ref }}
overwrite: true
build-web:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
- name: Check out LFS objects
run: |
git lfs pull
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev
- name: Install trunk
uses: jetli/[email protected]
with:
version: "v0.16.0"
- name: Add wasm target
run: |
rustup target add wasm32-unknown-unknown
- name: Build Release
run: |
trunk build --release --public-url "${GITHUB_REPOSITORY#*/}" --no-default-features --features wasm
- name: Optimize Wasm
uses: NiklasEi/wasm-opt-action@v2
with:
file: dist/*.wasm
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
11 changes: 0 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,9 @@ Then, replace all instances of the word `foxtrot` with the name of your game. Ch
- `build/macos/src/Game.app/Contents/Resources/Info.plist`

### Running the game
Native:
```bash
cargo run
```
Wasm:
```bash
trunk serve
```

Building WASM requires `trunk`:

```bash
cargo install --locked trunk
```

### Updating assets

Expand Down

0 comments on commit 021ec09

Please sign in to comment.