diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..958d639 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,49 @@ +name: Build bs-platform-js +on: + push: + branches: + - '*' + schedule: + - cron: '* 0 * * *' # every day at midnight utc + +jobs: + run: + name: Build + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + ocaml-version: ["4.06.1"] + node-version: [12.x] + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + path: main + + - name: Checkout BuckleScript repo + uses: actions/checkout@v2 + with: + repository: bucklescript/bucklescript + path: bucklescript + + - run: git submodule update --init && ./scripts/buildocaml.js + working-directory: bucklescript + + - run: ./scripts/ninja.js config && ./scripts/ninja.js build + working-directory: bucklescript + + - run: BS_PLAYGROUND=../../main/bundle ./scripts/repl.js -prepublish + working-directory: bucklescript + + - name: Test — print Sys.ocaml_version + run: node -e "require('./exports.js'); eval(ocaml.compile('Js.log Sys.ocaml_version').js_code)" + working-directory: main/bundle + + - name: Archive npm artifacts + uses: actions/upload-artifact@v1 + with: + name: bs-platform-js + path: main + diff --git a/bundle/stdlib/.gitkeep b/bundle/stdlib/.gitkeep new file mode 100644 index 0000000..e69de29