Sync with Pro #4596
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
# AUTOGENERATED FROM build-test-core-x86-ocaml5.jsonnet DO NOT MODIFY | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ocaml-base-compiler.5.2.0~rc1 | |
opam-repositories: | | |
default: https://github.com/ocaml/opam-repository.git | |
beta: https://github.com/ocaml/ocaml-beta-repository.git | |
- env: | |
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 | |
name: Set GHA cache for OPAM in _opam | |
uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-${{ runner.arch }}-opam-deps-ocaml-base-compiler.5.2.0~rc1-_opam-${{ hashFiles('semgrep.opam') }} | |
path: _opam | |
- name: Install semgrep dependencies | |
run: | | |
eval $(opam env) | |
sudo make install-deps-UBUNTU-for-semgrep-core | |
make install-deps-for-semgrep-core | |
- name: Build semgrep | |
run: | | |
eval $(opam env) | |
make | |
- name: Test semgrep | |
run: | | |
eval $(opam env) | |
make test | |
name: build-test-core-x86-ocaml5 | |
on: | |
pull_request: null | |
push: | |
branches: | |
- develop | |
workflow_dispatch: null |