mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-05-22 03:32:46 +00:00
initial game prototype
This commit is contained in:
38
.github/workflows/rust.yml
vendored
Normal file
38
.github/workflows/rust.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build-pong-lib:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: |
|
||||
cd pong
|
||||
cargo build --verbose
|
||||
- name: Run tests
|
||||
run: |
|
||||
cd pong
|
||||
cargo test --verbose
|
||||
build-wasm-wrapper:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Prepare
|
||||
run: |
|
||||
(test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||||
(test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
||||
cargo install-update -a
|
||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
|
||||
- name: Build
|
||||
run: wasm-pack build
|
||||
- name: Run tests
|
||||
run: wasm-pack test
|
||||
Reference in New Issue
Block a user