Skip to content

Commit 02d2aec

Browse files
tych0Tycho Andersen
authored andcommitted
ci: run more stuff in parallel
we have to flock cabal so it doesn't step on itself, but that does mean we can run e.g. the venv setup and cabal build in parallel. Signed-off-by: Tycho Andersen <[email protected]>
1 parent 1cdb8cb commit 02d2aec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
cabal-version: latest
2828
- run: sudo apt install x11-apps
2929
- run: git clone https://gitlab.freedesktop.org/xorg/proto/xcbproto.git proto && cd proto && git checkout ${{ matrix.xcbver }}
30-
- run: make XCBDIR=./proto/src check
30+
- run: make -j XCBDIR=./proto/src check

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
endif
99
NCPUS=$(shell grep -c processor /proc/cpuinfo)
1010
PARALLEL=$(shell which parallel)
11-
CABAL=cabal --config-file=./cabal.config
11+
CABAL=flock xcffib.cabal cabal --config-file=./cabal.config
1212
GEN=$(CABAL) new-run --minimize-conflict-set -j$(NCPUS) exe:xcffibgen --
1313
VENV=xcffib_venv
1414
PYTHON=$(VENV)/bin/python3

0 commit comments

Comments
 (0)