Skip to content

Commit

Permalink
Publish WebGL examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Dec 11, 2021
1 parent 3b48ed2 commit a8cf45d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,19 @@ env:

jobs:
build:
strategy:
matrix:
include:
- name: WebGPU
features:
dir: examples-gpu

- name: WebGL
features: webgl
dir: examples-gl

name: Publish ${{ matrix.name }}
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v2
Expand All @@ -25,7 +36,7 @@ jobs:
target: wasm32-unknown-unknown

- name: Build the examples
run: cargo build --release --target wasm32-unknown-unknown --examples
run: cargo build --release --target wasm32-unknown-unknown --examples --features "${{ matrix.features }}"

- name: Install wasm-bindgen-cli
run: cargo install wasm-bindgen-cli
Expand All @@ -44,4 +55,4 @@ jobs:
FOLDER: target/generated
REPOSITORY_NAME: gfx-rs/wgpu-rs.github.io
BRANCH: master
TARGET_FOLDER: examples/wasm
TARGET_FOLDER: ${{ matrix.dir }}/wasm

0 comments on commit a8cf45d

Please sign in to comment.