Skip to content

Commit b708817

Browse files
hhugovouillon
authored andcommitted
CI: move
1 parent 73df0b4 commit b708817

File tree

2 files changed

+52
-60
lines changed

2 files changed

+52
-60
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ jobs:
9797
# try to install them anyways, so we save an apt-roundtrip.
9898
sudo aptitude -o Acquire::Retries=30 install gcc-multilib g++-multilib pkg-config libgmp-dev libgmp-dev:i386 libx11-dev:i386 -y
9999
100+
- name: macos fix
101+
if: runner.os == 'Macos'
102+
run: |
103+
brew update
104+
brew upgrade
105+
brew install pkgconf
106+
# work around https://github.com/actions/runner-images/issues/10984
107+
100108
- name: Checkout tree
101109
uses: actions/checkout@v4
102110

@@ -112,31 +120,13 @@ jobs:
112120
dune-cache: true
113121
opam-pin: false
114122

115-
- name: Pin dune
116-
run: |
117-
opam pin add dune.3.17 https://github.com/ocaml/dune.git
118-
119123
- run: opam install conf-pkg-config
120124
if: runner.os == 'Windows'
121125

122126
- run: opam install . --best-effort
123127
if: ${{ matrix.skip-test }}
124128

125-
- run: cat VERSION | xargs opam pin wasm_of_ocaml-compiler . -n --with-version
126-
if: ${{ !matrix.skip-test }}
127-
shell: bash
128-
129-
- run: opam install conf-c++
130-
# Otherwise, the next step fails reinstalling gcc while compiling
131-
# other packages
132-
if: ${{ !matrix.skip-test && runner.os == 'Windows' }}
133-
134-
- run: opam install . --with-test --deps-only
135-
# Install the test dependencies
136-
if: ${{ !matrix.skip-test }}
137-
138-
- run: opam install .
139-
# Install the packages (without running the tests)
129+
- run: opam install . --with-test
140130
if: ${{ !matrix.skip-test }}
141131

142132
- run: opam exec -- make all
@@ -164,44 +154,4 @@ jobs:
164154
branch: wikidoc
165155
folder: doc-dev
166156
clean: true
167-
target-folder: doc/dev/
168-
169-
lint-opam:
170-
runs-on: ubuntu-latest
171-
steps:
172-
- name: Checkout tree
173-
uses: actions/checkout@v4
174-
- name: Set-up OCaml
175-
uses: ocaml/setup-ocaml@v3
176-
with:
177-
ocaml-compiler: "5.2"
178-
dune-cache: true
179-
- name: Pin dune
180-
run: |
181-
opam pin add -n dune.3.17 https://github.com/ocaml/dune.git
182-
- uses: ocaml/setup-ocaml/lint-opam@v3
183-
184-
lint-fmt:
185-
runs-on: ubuntu-latest
186-
steps:
187-
- name: Checkout tree
188-
uses: actions/checkout@v4
189-
- name: Set-up OCaml
190-
uses: ocaml/setup-ocaml@v3
191-
with:
192-
ocaml-compiler: "5.2"
193-
dune-cache: true
194-
- name: Pin dune
195-
run: |
196-
opam pin add -n dune.3.17 https://github.com/ocaml/dune.git
197-
- uses: ocaml/setup-ocaml/lint-fmt@v3
198-
199-
lint-runtime:
200-
runs-on: ubuntu-latest
201-
steps:
202-
- name: Checkout tree
203-
uses: actions/checkout@v4
204-
- name: Set-up Biome
205-
uses: biomejs/setup-biome@v2
206-
- name: Run biome
207-
run: biome ci
157+
target-folder: doc/dev/

.github/workflows/lint.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
lint-opam:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout tree
14+
uses: actions/checkout@v4
15+
- name: Set-up OCaml
16+
uses: ocaml/setup-ocaml@v3
17+
with:
18+
ocaml-compiler: "5.2"
19+
dune-cache: true
20+
- uses: ocaml/setup-ocaml/lint-opam@v3
21+
22+
lint-fmt:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout tree
26+
uses: actions/checkout@v4
27+
- name: Set-up OCaml
28+
uses: ocaml/setup-ocaml@v3
29+
with:
30+
ocaml-compiler: "5.2"
31+
dune-cache: true
32+
- uses: ocaml/setup-ocaml/lint-fmt@v3
33+
34+
lint-runtime:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout tree
38+
uses: actions/checkout@v4
39+
- name: Set-up Biome
40+
uses: biomejs/setup-biome@v2
41+
- name: Run biome
42+
run: biome ci

0 commit comments

Comments
 (0)