Merge pull request #557 from tursodatabase/retrocompatible-proxy-proto #1306
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: Makefile CI with Wasm enabled | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
merge_group: | |
branches: [ "main" ] | |
jobs: | |
maketestwasm: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: libsql-sqlite3 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: get TCL | |
run: sudo apt-get install -y tcl8.6-dev | |
- name: get WasmEdge | |
run: > | |
wget -O- https://github.com/WasmEdge/WasmEdge/releases/download/0.11.2/WasmEdge-slim-runtime-0.11.2-manylinux2014_x86_64.tar.gz | tar zxv | |
&& sudo cp -r WasmEdge-0.11.2-Linux/include/* /usr/include/ | |
&& sudo cp -r WasmEdge-0.11.2-Linux/lib64/* /usr/lib/ | |
- name: configure with Wasm | |
run: ./configure --enable-wasm-runtime-dynamic | |
- name: make the library generally available | |
run: mkdir tmp_lib && DESTDIR=$(pwd)/tmp_lib make liblibsql_install && sudo cp -r tmp_lib/usr/local/lib/* /usr/lib/ | |
- name: Run tests | |
run: make test | |
- name: Run Rust tests with Wasm | |
run: make rusttestwasm | |
- name: reconfigure with Wasm in WasmEdge mode | |
run: make clean && ./configure --enable-wasm-runtime-wasmedge | |
- name: Run tests | |
run: make test | |
- name: Run tests with Wasm | |
run: make rusttestwasm |