add deploy
to package
#19
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: CI | |
on: | |
push: | |
jobs: | |
build-and-test: | |
name: Build and test emscripten | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- run: | | |
docker run -di --rm --name emscripten emscripten/emsdk:3.1.49 bash | |
docker cp ${{ github.workspace }}/. emscripten:/src | |
docker exec emscripten emcc -v | |
docker exec emscripten apt-get update | |
docker exec emscripten apt-get install -y cmake flex bison libglpk-dev libgmp-dev libarpack2-dev python3-venv | |
docker exec emscripten cp /src/tools/IGRAPH_VERSION /src/vendor/igraph | |
docker exec emscripten mkdir build | |
docker exec -w /src/build emscripten emcmake cmake .. -DCMAKE_BUILD_TYPE=Release | |
docker exec -w /src/build emscripten make test VERBOSE=1 | |
- if: always() | |
run: docker stop emscripten || true |