From 4f5188f7d065100de7c02531829995702bbb56ff Mon Sep 17 00:00:00 2001 From: Graham Langford Date: Wed, 20 Sep 2023 14:30:06 -0500 Subject: [PATCH] initial ci action --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .nvmrc | 1 + 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f2c4270 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: push + +jobs: + build-jq: + runs-on: ubuntu-latest + + steps: + - name: emscripten + uses: actions/checkout@v4 + with: + repository: "emscripten-core/emsdk" + path: emsdk + - uses: actions/setup-node@v3 + + - name: jq-web + uses: actions/checkout@v4 + with: + path: main + + - run: | + echo "Installing emscripten" + cd emsdk + ./emsdk install 1.39.14 + ./emsdk activate 1.39.14 + source ./emsdk_env.sh + cd .. + + - run: | + echo "Building jq-web" + cd main + make + npm install diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..1401cab --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18.13 \ No newline at end of file