diff --git a/.circleci/config.yml b/.circleci/config.yml index b3f7c74..046b7b0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,6 +7,9 @@ version: 2.1 +orbs: + win: circleci/windows@5.1.0 + # TODO: check that the docs are up-to-date (requires odoc and pandoc) jobs: build: @@ -49,6 +52,36 @@ jobs: name: Test command: opam exec -- make test + windows_build: + executor: + name: win/default + steps: + - checkout + - run: + name: Install Opam + shell: bash.exe + command: | + url="https://github.com/ocaml/opam/releases/download/2.4.1/opam-2.4.1-x86_64-windows.exe" + dst="$HOME/AppData/Local/Microsoft/WindowsApps/opam" + curl -L "$url" -o "$dst" + opam --version + - run: + name: Set up OCaml and opam environment + shell: bash.exe + no_output_timeout: 30m + command: | + opam init --compiler=5.3.0 -y --debug + ocaml --version + - run: + name: Install dependencies + command: ./scripts/dev-setup-all-platforms -y + - run: + name: Build + command: opam exec -- make + - run: + name: Test + command: opam exec -- make test + semgrep-full-scan: docker: - image: semgrep/semgrep @@ -78,6 +111,7 @@ workflows: jobs: - build - build_legacy + - windows_build semgrep: jobs: - semgrep-full-scan: