Fix emscripten bindings update #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bindings_generation | |
on: | |
push: | |
paths: | |
- 'generator/third_party/**' | |
workflow_dispatch: | |
jobs: | |
wgpu-native: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: 'recursive' | |
- name: Setup Nim environment | |
uses: jiro4989/[email protected] | |
with: | |
nim-version: 'devel' | |
# Install rust to build wgpu-native | |
- name: Install rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
- name: Generate bindings | |
run: nimble generate_wgpu -y | |
- name: Update repository bindings | |
uses: EndBug/[email protected] | |
with: | |
add: 'src/nimgpu/*' | |
message: 'Automatic wgpu-native bindings update' | |
push: true | |
dawn: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: 'recursive' | |
- name: Setup Nim environment | |
uses: jiro4989/[email protected] | |
with: | |
nim-version: 'devel' | |
# Install depot tools to build dawn | |
- name: Install depot tools | |
uses: newkdev/[email protected] | |
- name: Generate bindings | |
run: nimble generate_dawn -y | |
- name: Update repository bindings | |
uses: EndBug/[email protected] | |
with: | |
add: 'src/nimgpu/*' | |
message: 'Automatic dawn bindings update' | |
push: true | |
emscripten: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: 'recursive' | |
- name: Setup Nim environment | |
uses: jiro4989/[email protected] | |
with: | |
nim-version: 'devel' | |
- name: Generate bindings | |
run: nimble generate_emscripten -y | |
- name: Update repository bindings | |
uses: EndBug/[email protected] | |
with: | |
add: 'src/nimgpu/*' | |
message: 'Automatic dawn bindings update' | |
push: true |