Skip to content

Commit d7c4bfd

Browse files
committed
Addressing review comments
1 parent a7e95d2 commit d7c4bfd

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,14 @@ jobs:
9090
*) echo "CABAL_VERSION=3.4.0.0-rc4" >> $GITHUB_ENV;;
9191
esac
9292
93-
- uses: haskell/actions/setup@v1
93+
- name: Install Haskell
94+
uses: haskell/actions/setup@v1
9495
id: setup-haskell
9596
with:
9697
ghc-version: ${{ matrix.ghc }}
9798
cabal-version: ${{ env.CABAL_VERSION }}
9899

99-
- name: Haskell versions
100+
- name: Show Haskell tool versions
100101
run: |
101102
ghc --version
102103
cabal --version
@@ -108,20 +109,19 @@ jobs:
108109
echo "TMPDIR=$RUNNER_TEMP" >> $GITHUB_ENV
109110
echo "TMP=$RUNNER_TEMP" >> $GITHUB_ENV
110111
111-
# Cache cabal-store
112-
- name: cache cabal store
112+
- name: Cache cabal store
113113
uses: actions/cache@v2
114114
with:
115115
path: ${{ steps.setup-haskell.outputs.cabal-store }}
116116
key: cabal-store-${{ env.CACHE_VERSION }}-${{ matrix.ghc }}-${{ matrix.os }}
117117

118-
- name: update Hackage index
118+
- name: Update Hackage index
119119
run: cabal v2-update
120120

121121
- name: Cabal Configure
122122
run: cabal --builddir="$CABAL_BUILDDIR" configure --enable-tests
123123

124-
- name: Use cabal.project.local.windows
124+
- name: Use cabal.project.local.ci.windows
125125
run: |
126126
cat ./cabal.project.local.ci.windows >> ./cabal.project.local
127127
@@ -136,7 +136,6 @@ jobs:
136136
run: |
137137
cabal --builddir="$CABAL_BUILDDIR" install happy --install-method=copy
138138
139-
# Build dependencies
140139
- name: Build dependencies
141140
run: cabal --builddir="$CABAL_BUILDDIR" build --only-dependencies all
142141

@@ -148,47 +147,48 @@ jobs:
148147
cat "$x"
149148
done
150149
151-
#
152-
# Build & Test network packages
153-
#
150+
# Build Win32 specific packages
154151

155152
- name: Win32-network [build]
156153
if: matrix.os == 'windows-latest'
157154
run: cabal --builddir="$CABAL_BUILDDIR" build Win32-network
158155

159-
# ntp-client
156+
# Build network packages
157+
160158
- name: ntp-client [build]
161-
if: matrix.subset == 'consensus'
159+
if: matrix.subset == 'network'
162160
run: cabal --builddir="$CABAL_BUILDDIR" build ntp-client
163161

164162
- name: io-sim-classes [build]
165-
if: matrix.subset == 'consensus'
163+
if: matrix.subset == 'network'
166164
run: cabal --builddir="$CABAL_BUILDDIR" build io-sim-classes
167165

168166
- name: io-sim [build]
169-
if: matrix.subset == 'consensus'
167+
if: matrix.subset == 'network'
170168
run: cabal --builddir="$CABAL_BUILDDIR" build io-sim
171169

172170
- name: typed-protocols [build]
173-
if: matrix.subset == 'consensus'
171+
if: matrix.subset == 'network'
174172
run: cabal --builddir="$CABAL_BUILDDIR" build typed-protocols
175173

176174
- name: typed-protocols-examples [build]
177-
if: matrix.subset == 'consensus'
175+
if: matrix.subset == 'network'
178176
run: cabal --builddir="$CABAL_BUILDDIR" build typed-protocols-examples
179177

180178
- name: network-mux [build]
181-
if: matrix.subset == 'consensus'
179+
if: matrix.subset == 'network'
182180
run: cabal --builddir="$CABAL_BUILDDIR" build network-mux
183181

184182
- name: ouroboros-network-framework [build]
185-
if: matrix.subset == 'consensus'
183+
if: matrix.subset == 'network'
186184
run: cabal --builddir="$CABAL_BUILDDIR" build ouroboros-network-framework
187185

188186
- name: ouroboros-network [build]
189-
if: matrix.subset == 'consensus'
187+
if: matrix.subset == 'network'
190188
run: cabal --builddir="$CABAL_BUILDDIR" build ouroboros-network
191189

190+
# Build consensus packages
191+
192192
- name: ouroboros-consensus [build]
193193
if: matrix.subset == 'consensus'
194194
run: cabal --builddir="$CABAL_BUILDDIR" build ouroboros-consensus
@@ -233,14 +233,14 @@ jobs:
233233
if: matrix.subset == 'consensus'
234234
run: cabal --builddir="$CABAL_BUILDDIR" build ouroboros-consensus-cardano-test
235235

236-
#
237-
# Test network packages
238-
#
236+
# Test Win32 specific packages
239237

240238
- name: Win32-network [test]
241239
if: matrix.os == 'windows-latest'
242240
run: cabal --builddir="$CABAL_BUILDDIR" run Win32-network:test
243241

242+
# Test network packages
243+
244244
- name: ntp-client [test]
245245
if: matrix.subset == 'network'
246246
run: cabal --builddir="$CABAL_BUILDDIR" run ntp-client:test
@@ -267,8 +267,10 @@ jobs:
267267
run: cabal --builddir="$CABAL_BUILDDIR" run ouroboros-network-framework:test -- -p '$0 != "typed-protocols.Socket.socket send receive IPv4"'
268268

269269
- name: ouroboros-network [test]
270+
if: matrix.subset == 'network'
270271
run: cabal --builddir="$CABAL_BUILDDIR" run ouroboros-network:test
271272

273+
# Test consensus packages
272274

273275
# - name: ouroboros-consensus [test]
274276
# if: matrix.subset == 'consensus'

0 commit comments

Comments
 (0)