This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from reason-association/initial-migration
Initial migration of GH action
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
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.