Try static #26
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
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: sudo apt install -y --no-install-recommends opam musl-tools | |
- run: opam --version | |
- run: opam init -y --compiler=5.2.0,ocaml-option-static --disable-sandboxing | |
- 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 |