Skip to content

Commit c4caeb0

Browse files
committed
Build vector in directory unpacked
This is to check that source distribution is in fact buildable Fixes #525
1 parent 5287bb5 commit c4caeb0

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,28 +90,39 @@ jobs:
9090
- name: Make sdist
9191
run: |
9292
mkdir sdist
93-
cabal sdist vector -o sdist
93+
cabal sdist vector -o sdist
94+
cabal sdist vector-stream -o sdist
95+
cabal sdist vector-bench-papi -o sdist
9496
- name: Unpack
9597
run: |
9698
mkdir unpacked
97-
tar -C unpacked -xzf sdist/vector*tar.gz
98-
cd unpacked
99+
for NM in sdist/vector*tar.gz; do
100+
tar -C unpacked -xzf $NM
101+
done
102+
echo "packages:" >> unpacked/cabal.project
103+
echo " vector-*/*.cabal" >> unpacked/cabal.project
99104
# ----------------
100105
- name: cabal check
101106
run: |
102-
(cd vector-stream && cabal -vnormal check)
103-
(cd vector && cabal -vnormal check)
104-
# ----------------
107+
for nm in vector-*; do
108+
echo Checking $nm
109+
(cd "$nm" && cabal -vnormal check)
110+
done
111+
working-directory: unpacked/
112+
# ----------------
105113
- name: Build
106114
run: |
107115
echo FLAG_PAPI=$FLAG_PAPI
108116
cabal configure ${{ matrix.flags }} $FLAG_PAPI --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
109117
cabal build all --write-ghc-environment-files=always
118+
working-directory: unpacked/
110119
# ----------------
111120
- name: Test
112121
run: |
113122
cabal test all
123+
working-directory: unpacked/
114124
# ----------------
115125
- name: Bench
116126
run: |
117127
cabal bench all
128+
working-directory: unpacked/

0 commit comments

Comments
 (0)