Skip to content

Commit 64e06bb

Browse files
committed
Only write environment files in main build
1 parent dbfd287 commit 64e06bb

20 files changed

+40
-39
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
mkdir -p $CABAL_DIR
102102
cat >> $CABAL_CONFIG <<EOF
103103
remote-build-reporting: anonymous
104-
write-ghc-environment-files: always
104+
write-ghc-environment-files: never
105105
remote-repo-cache: $CABAL_DIR/packages
106106
logs-dir: $CABAL_DIR/logs
107107
world-file: $CABAL_DIR/world
@@ -208,7 +208,7 @@ jobs:
208208
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
209209
- name: build
210210
run: |
211-
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
211+
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
212212
- name: tests
213213
run: |
214214
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct

fixtures/all-versions.github

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
mkdir -p $CABAL_DIR
141141
cat >> $CABAL_CONFIG <<EOF
142142
remote-build-reporting: anonymous
143-
write-ghc-environment-files: always
143+
write-ghc-environment-files: never
144144
remote-repo-cache: $CABAL_DIR/packages
145145
logs-dir: $CABAL_DIR/logs
146146
world-file: $CABAL_DIR/world
@@ -217,7 +217,7 @@ jobs:
217217
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
218218
- name: build
219219
run: |
220-
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
220+
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
221221
- name: tests
222222
run: |
223223
if [ $((! GHCJSARITH)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct ; fi

fixtures/all-versions.travis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ before_install:
180180
- |
181181
echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
182182
echo "remote-build-reporting: anonymous" >> $CABALHOME/config
183-
echo "write-ghc-environment-files: always" >> $CABALHOME/config
183+
echo "write-ghc-environment-files: never" >> $CABALHOME/config
184184
echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
185185
echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
186186
echo "world-file: $CABALHOME/world" >> $CABALHOME/config
@@ -247,7 +247,7 @@ script:
247247
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
248248
# Building with tests and benchmarks...
249249
# build & run tests, build benchmarks
250-
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
250+
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all --write-ghc-environment-files=always
251251
# Testing...
252252
- if [ $((! GHCJSARITH)) -ne 0 ] ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all --test-show-details=direct ; fi
253253
# cabal check...

fixtures/copy-fields-all.github

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
mkdir -p $CABAL_DIR
119119
cat >> $CABAL_CONFIG <<EOF
120120
remote-build-reporting: anonymous
121-
write-ghc-environment-files: always
121+
write-ghc-environment-files: never
122122
remote-repo-cache: $CABAL_DIR/packages
123123
logs-dir: $CABAL_DIR/logs
124124
world-file: $CABAL_DIR/world
@@ -221,7 +221,7 @@ jobs:
221221
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
222222
- name: build
223223
run: |
224-
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
224+
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
225225
- name: tests
226226
run: |
227227
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct

fixtures/copy-fields-all.travis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ before_install:
135135
- |
136136
echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
137137
echo "remote-build-reporting: anonymous" >> $CABALHOME/config
138-
echo "write-ghc-environment-files: always" >> $CABALHOME/config
138+
echo "write-ghc-environment-files: never" >> $CABALHOME/config
139139
echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
140140
echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
141141
echo "world-file: $CABALHOME/world" >> $CABALHOME/config
@@ -246,7 +246,7 @@ script:
246246
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
247247
# Building with tests and benchmarks...
248248
# build & run tests, build benchmarks
249-
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
249+
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all --write-ghc-environment-files=always
250250
# Testing...
251251
- ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all --test-show-details=direct
252252
# cabal check...

fixtures/copy-fields-none.github

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
mkdir -p $CABAL_DIR
119119
cat >> $CABAL_CONFIG <<EOF
120120
remote-build-reporting: anonymous
121-
write-ghc-environment-files: always
121+
write-ghc-environment-files: never
122122
remote-repo-cache: $CABAL_DIR/packages
123123
logs-dir: $CABAL_DIR/logs
124124
world-file: $CABAL_DIR/world
@@ -210,7 +210,7 @@ jobs:
210210
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
211211
- name: build
212212
run: |
213-
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
213+
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
214214
- name: tests
215215
run: |
216216
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct

fixtures/copy-fields-none.travis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ before_install:
135135
- |
136136
echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
137137
echo "remote-build-reporting: anonymous" >> $CABALHOME/config
138-
echo "write-ghc-environment-files: always" >> $CABALHOME/config
138+
echo "write-ghc-environment-files: never" >> $CABALHOME/config
139139
echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
140140
echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
141141
echo "world-file: $CABALHOME/world" >> $CABALHOME/config
@@ -224,7 +224,7 @@ script:
224224
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
225225
# Building with tests and benchmarks...
226226
# build & run tests, build benchmarks
227-
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
227+
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all --write-ghc-environment-files=always
228228
# Testing...
229229
- ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all --test-show-details=direct
230230
# cabal check...

fixtures/copy-fields-some.github

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
mkdir -p $CABAL_DIR
119119
cat >> $CABAL_CONFIG <<EOF
120120
remote-build-reporting: anonymous
121-
write-ghc-environment-files: always
121+
write-ghc-environment-files: never
122122
remote-repo-cache: $CABAL_DIR/packages
123123
logs-dir: $CABAL_DIR/logs
124124
world-file: $CABAL_DIR/world
@@ -213,7 +213,7 @@ jobs:
213213
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
214214
- name: build
215215
run: |
216-
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
216+
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
217217
- name: tests
218218
run: |
219219
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct

fixtures/copy-fields-some.travis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ before_install:
135135
- |
136136
echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
137137
echo "remote-build-reporting: anonymous" >> $CABALHOME/config
138-
echo "write-ghc-environment-files: always" >> $CABALHOME/config
138+
echo "write-ghc-environment-files: never" >> $CABALHOME/config
139139
echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
140140
echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
141141
echo "world-file: $CABALHOME/world" >> $CABALHOME/config
@@ -230,7 +230,7 @@ script:
230230
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
231231
# Building with tests and benchmarks...
232232
# build & run tests, build benchmarks
233-
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
233+
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all --write-ghc-environment-files=always
234234
# Testing...
235235
- ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all --test-show-details=direct
236236
# cabal check...

fixtures/empty-line.github

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
mkdir -p $CABAL_DIR
119119
cat >> $CABAL_CONFIG <<EOF
120120
remote-build-reporting: anonymous
121-
write-ghc-environment-files: always
121+
write-ghc-environment-files: never
122122
remote-repo-cache: $CABAL_DIR/packages
123123
logs-dir: $CABAL_DIR/logs
124124
world-file: $CABAL_DIR/world
@@ -213,7 +213,7 @@ jobs:
213213
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
214214
- name: build
215215
run: |
216-
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
216+
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
217217
- name: tests
218218
run: |
219219
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct

0 commit comments

Comments
 (0)