-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (28 loc) · 924 Bytes
/
Copy pathci.yml
File metadata and controls
41 lines (28 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest, # x64
buildjet-2vcpu-ubuntu-2204-arm, # ARM
]
runs-on: ${{matrix.os}}
steps:
- name: Checkout ReScript
uses: actions/checkout@v4
with:
repository: rescript-lang/rescript-compiler
- run: update-alternatives --query gcc
- run: sudo apt install -y --no-install-recommends opam musl-tools
- run: opam --version
- run: opam init -y --bare --disable-sandboxing
- run: opam switch create 5.2.0 --packages ocaml-option-static
- run: opam install . -y --deps-only
- run: opam exec -- dune build --display quiet --profile static
- run: file _build/default/jscomp/bsc/rescript_compiler_main.exe
- run: _build/default/jscomp/bsc/rescript_compiler_main.exe -v