Refactor webapp backend #16
Workflow file for this run
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: Privateer Web App Backend | |
on: | |
push: | |
branches: [ "webapp" ] | |
paths: | |
- src/privateer/cpp/privateer-bind.cpp | |
pull_request: | |
branches: [ "webapp" ] | |
paths: | |
- src/privateer/cpp/privateer-bind.cpp | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check out dependencies | |
run : | | |
git clone https://github.com/emscripten-core/emsdk.git | |
cd emsdk | |
git pull | |
./emsdk install latest | |
./emsdk activate latest | |
cd .. | |
- name: Check out libraries | |
run : | | |
git clone https://github.com/Dialpuri/privateer_webserver_dependencies.git | |
cd privateer_webserver_dependencies | |
cp -r * ../ | |
cd .. | |
ls | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
- name: Build | |
run : | | |
source ./emsdk/emsdk_env.sh | |
emcmake cmake . -D MODE=TESTING | |
emmake make -j | |