Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from reason-association/initial-migration
Browse files Browse the repository at this point in the history
Initial migration of GH action
  • Loading branch information
jchavarri authored May 18, 2020
2 parents 44e0b76 + ecaa3c9 commit 7fde41b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -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

Empty file added bundle/stdlib/.gitkeep
Empty file.

0 comments on commit 7fde41b

Please sign in to comment.