chore: add release and other supporting workflows (#17) #78
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
main: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: install system dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y clang-format cproto git cmake python3 curl libtinfo5 | |
npm install -g clang-tools-prebuilt | |
- name: install build tools and build | |
run: | | |
git clone https://github.com/emscripten-core/emsdk.git | |
cd emsdk && ./emsdk install latest && ./emsdk activate latest && source ./emsdk_env.sh && cd .. | |
npm install | |
make build | |
- name: test | |
run: | | |
npm test |