Skip to content

Commit 205f889

Browse files
committed
WIP
1 parent 3c65ee9 commit 205f889

File tree

1 file changed

+11
-50
lines changed

1 file changed

+11
-50
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ jobs:
105105
with:
106106
node-version: lts/*
107107

108+
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
109+
uses: ocaml/setup-ocaml@v3
110+
with:
111+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
112+
dune-cache: true
113+
opam-pin: false
114+
115+
- run: opam install conf-pkg-config
116+
if: runner.os == 'Windows'
117+
108118
- name: Restore cached binaryen
109119
id: cache-binaryen
110120
uses: actions/cache/restore@v4
@@ -129,18 +139,14 @@ jobs:
129139
if: matrix.os == 'macos-latest' && steps.cache-binaryen.outputs.cache-hit != 'true'
130140
run: brew install ninja
131141

132-
- name: Install ninja (Windows)
133-
if: matrix.os == 'windows-latest' && steps.cache-binaryen.outputs.cache-hit != 'true'
134-
run: choco install ninja
135-
136142
- name: Build binaryen
137143
if: matrix.os != 'windows-latest' && steps.cache-binaryen.outputs.cache-hit != 'true'
138144
working-directory: ./binaryen
139145
run: |
140146
cmake -G Ninja .
141147
ninja
142148
143-
- name: Build binaryen
149+
- name: Build binaryen (Windows)
144150
if: matrix.os == 'windows-latest' && steps.cache-binaryen.outputs.cache-hit != 'true'
145151
working-directory: ./binaryen
146152
run: |
@@ -159,51 +165,6 @@ jobs:
159165
run: |
160166
echo "$GITHUB_WORKSPACE/binaryen/bin" >> $GITHUB_PATH
161167
162-
- name: Binaryen DEBUG
163-
shell: bash
164-
run: |
165-
ls -l /d/a/wasm_of_ocaml/wasm_of_ocaml/binaryen/bin
166-
167-
- name: Binaryen DEBUG
168-
shell: bash
169-
run: |
170-
echo $PATH
171-
172-
- name: Binaryen DEBUG
173-
shell: bash
174-
run: |
175-
which wasm-merge
176-
177-
- name: Binaryen DEBUG
178-
shell: bash
179-
run: |
180-
/d/a/wasm_of_ocaml/wasm_of_ocaml/binaryen/bin/wasm-merge.exe --version
181-
182-
- name: Binaryen DEBUG
183-
shell: bash
184-
run: |
185-
/d/a/wasm_of_ocaml/wasm_of_ocaml/binaryen/bin/wasm-merge --version
186-
187-
- name: Binaryen DEBUG
188-
shell: bash
189-
run: |
190-
wasm-merge --version
191-
192-
- name: Binaryen DEBUG
193-
shell: bash
194-
run: |
195-
wasm-merge --version | grep 'version \(11[89]\|1[2-9][0-9]\)'
196-
197-
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
198-
uses: ocaml/setup-ocaml@v3
199-
with:
200-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
201-
dune-cache: true
202-
opam-pin: false
203-
204-
- run: opam install conf-pkg-config
205-
if: runner.os == 'Windows'
206-
207168
- name: Install faked binaryen-bin package
208169
# It's faster to use a cached version
209170
run: opam install --fake binaryen-bin

0 commit comments

Comments
 (0)