Skip to content

Commit 5d62522

Browse files
committed
Name stack/snapshot files after GHC version
1 parent 397346c commit 5d62522

16 files changed

+82
-109
lines changed

.azure/azure-linux-template.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
vmImage: ${{ parameters.vmImage }}
88
strategy:
99
matrix:
10-
stack-def:
10+
GHC 8.2:
1111
BUILD: stack
12-
STACK_YAML: stack.yaml
13-
stack-lts-12:
12+
STACK_YAML: stack-ghc-82.yaml
13+
GHC 8.4:
1414
BUILD: stack
15-
STACK_YAML: stack-lts-12.yaml
16-
nightly:
15+
STACK_YAML: stack-ghc-84.yaml
16+
GHC 8.6:
1717
BUILD: stack
18-
STACK_YAML: stack-nightly.yaml
18+
STACK_YAML: stack-ghc-86.yaml
1919
style:
2020
BUILD: style
2121
pedantic:
@@ -104,7 +104,7 @@ jobs:
104104
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
105105
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
106106
displayName: 'Installation ${{parameters.os}}'
107-
continueOnError: ${{ eq(variables['STACK_YAML'], 'stack-nightly.yaml') }}
107+
continueOnError: ${{ eq(variables['STACK_YAML'], 'stack-ghc-86.yaml') }}
108108
- script: |
109109
export PATH=$HOME/.local/bin:$PATH;
110110
export AWS_ACCESS_KEY_ID="$(AWS_ACCESS_KEY_ID)";

.azure/azure-nightly-template-linux.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ jobs:
55
- group: AWS_Keys
66
pool:
77
vmImage: ${{ parameters.vmImage }}
8-
strategy:
9-
matrix:
10-
stack:
11-
BUILD: stack
128
steps:
139
- script: |
1410
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;

.azure/azure-nightly-template-osx.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ jobs:
55
- group: AWS_Keys
66
pool:
77
vmImage: ${{ parameters.vmImage }}
8-
strategy:
9-
matrix:
10-
stack:
11-
BUILD: stack
128
steps:
139
- script: |
1410
export AWS_ACCESS_KEY_ID="$(AWS_ACCESS_KEY_ID)";

.azure/azure-nightly-template-windows.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ jobs:
55
- group: AWS_Keys
66
pool:
77
vmImage: ${{ parameters.vmImage }}
8-
strategy:
9-
matrix:
10-
stack:
11-
BUILD: stack
128
steps:
139
- powershell: |
1410
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

.azure/azure-osx-template.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ jobs:
44
- group: AWS_Keys
55
pool:
66
vmImage: ${{ parameters.vmImage }}
7-
strategy:
8-
matrix:
9-
stack-def:
10-
BUILD: stack
11-
STACK_YAML: stack.yaml
127
steps:
138
- script: |
149
export AWS_ACCESS_KEY_ID="$(AWS_ACCESS_KEY_ID)";
@@ -30,7 +25,7 @@ jobs:
3025
env:
3126
OS_NAME: ${{ parameters.os }}
3227
displayName: 'Installation ${{parameters.os}}'
33-
continueOnError: ${{ eq(variables['STACK_YAML'], 'stack-nightly.yaml') }}
28+
continueOnError: ${{ eq(variables['STACK_YAML'], 'stack-ghc-86.yaml') }}
3429
- script: |
3530
export PATH=$HOME/.local/bin:$PATH;
3631
export AWS_ACCESS_KEY_ID="$(AWS_ACCESS_KEY_ID)";

.azure/azure-windows-template.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ jobs:
55
- group: AWS_Keys
66
pool:
77
vmImage: ${{ parameters.vmImage }}
8-
strategy:
9-
matrix:
10-
stack:
11-
BUILD: stack
12-
STACK_YAML: stack.yaml
138
steps:
149
- powershell: |
1510
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

doc/maintainers/releases.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Look through https://fpcomplete.slack.com/files/U9U8HDGUC/FCM7UN5NJ/notes_on_doc_maintainers_releases_md.txt for hints on how to make this document more clear.
1414
* If `store` is no longer a dependency, likely can remove from stackage build constraints' `expected-test-failures`
1515
* Try using Alpine and https://github.com/redneb/ghc-alt-libc/releases to build linux 32-bit static binaries. This will require upgrading GHC version used (e.g. to 8.6.5). If this works out, switch over to the same for 64-bit static binaries (rather than static-haskell-nix).
16+
* Fix the reference to "latest nightly stackage snapshot" below to work with a new workflow based on the GHC-named stack.yaml files.
1617

1718
## Iterating on release process
1819

etc/scripts/sdist-with-bounds.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set -eu -o pipefail
55
rootdir="$(cd "$(dirname "$0")/../.."; pwd)"
66
stackbin=stack
77
loweryaml=$rootdir/stack.yaml
8-
if [[ -f $rootdir/stack-lts-12.yaml ]]; then
9-
midyaml=$rootdir/stack-lts-12.yaml
8+
if [[ -f $rootdir/stack-ghc-84.yaml ]]; then
9+
midyaml=$rootdir/stack-ghc-84.yaml
1010
else
1111
midyaml=$rootdir/stack.yaml
1212
fi
13-
if [[ -f $rootdir/stack-nightly.yaml ]]; then
14-
upperyaml=$rootdir/stack-nightly.yaml
13+
if [[ -f $rootdir/stack-ghc-86.yaml ]]; then
14+
upperyaml=$rootdir/stack-ghc-86.yaml
1515
else
1616
upperyaml=$rootdir/stack.yaml
1717
fi

package.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ extra-source-files:
3131
- ChangeLog.md
3232
- README.md
3333
- stack.yaml
34-
- snapshot.yaml
3534
- doc/*.md
3635
- src/setup-shim/StackSetupShim.hs
3736
- test/package-dump/ghc-7.10.txt

snapshot.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)