Skip to content

Commit

Permalink
linux or macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Apr 5, 2024
1 parent 5dce00e commit f6bdeb3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/workflow-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
target: wasm32-unknown-unknown

- name: install xvfb, llvmpipe and lavapipe
if: runner.os == 'linux'
run: |
sudo apt-get update -y -qq
sudo add-apt-repository ppa:kisak/turtle -y
Expand All @@ -54,13 +55,23 @@ jobs:
cd ../..
- name: Run examples
if: runner.os == 'linux'
shell: bash
run: |
# start a webserver
python3 -m http.server --directory examples/wasm &
xvfb-run cargo run -p build-wasm-example -- --browsers ${{ matrix.browser }} --api ${{ matrix.api }} --frames 25 --test lighting
- name: Run examples
if: runner.os == 'macos'
shell: bash
run: |
# start a webserver
python3 -m http.server --directory examples/wasm &
cargo run -p build-wasm-example -- --browsers ${{ matrix.browser }} --api ${{ matrix.api }} --frames 25 --test lighting
- name: Save screenshots
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f6bdeb3

Please sign in to comment.