forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.45 KB
/
build-test-windows-x86.yml
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
42
43
44
45
# AUTOGENERATED FROM build-test-windows-x86.jsonnet DO NOT MODIFY
name: build-test-windows-x86
"on":
workflow_dispatch:
workflow_call:
jobs:
job:
runs-on: windows-latest
env:
OPAMROOT: c:\opam
steps:
- id: cache-opam
uses: actions/cache@v4
with:
path: |
c:\opam
_opam
opam.exe
key: ${{ runner.os }}-opam4
restore-keys: |
${{ runner.os }}-opam
- run: |
Invoke-WebRequest "https://github.com/ocaml/opam/releases/download/2.2.0-beta1/opam-2.2.0-beta1-x86_64-preview-for-windows.exe" -OutFile opam.exe
.\opam.exe init --bare --disable-sandboxing
.\opam.exe switch create . "ocaml-variants.4.14.0+mingw64c" --repos "default,mingw=git+https://github.com/fdopen/opam-repository-mingw.git#opam2"
if: steps.cache-opam.outputs.cache-hit != 'true'
- run: dir
working-directory: ${{ github.workspace }}
- run: git config --system core.longpaths true
- name: Make checkout speedy
run: git config --global fetch.parallel 50
- uses: actions/checkout@v3
with:
submodules: true
- id: cache-ocaml-deps
uses: actions/cache@v4
with:
path: |
_opam
key: ${{ runner.os }}-deps-${{ hashFiles('**/*.opam') }}-1
restore-keys: |
${{ runner.os }}-deps
- run: |
.\opam.exe install --deps-only .\
if: steps.cache-ocaml-deps.outputs.cache-hit != 'true'