Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 5 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
41 lines
1 KiB
YAML
41 lines
1 KiB
YAML
name: Check Wasm Exports
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- lib/include/tree_sitter/api.h
|
|
- lib/binding_web/**
|
|
- xtask/src/**
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- lib/include/tree_sitter/api.h
|
|
- lib/binding_rust/bindings.rs
|
|
- CMakeLists.txt
|
|
|
|
jobs:
|
|
check-wasm-exports:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up stable Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install wasm-objdump
|
|
run: sudo apt-get update -y && sudo apt-get install -y wabt
|
|
|
|
- name: Build C library (make)
|
|
run: make -j CFLAGS="$CFLAGS"
|
|
env:
|
|
CFLAGS: -g -Werror -Wall -Wextra -Wshadow -Wpedantic -Werror=incompatible-pointer-types
|
|
|
|
- name: Build Wasm Library
|
|
working-directory: lib/binding_web
|
|
run: npm ci && npm run build:debug
|
|
|
|
- name: Check Wasm exports
|
|
run: cargo xtask check-wasm-exports
|