Skip to content

Commit 935d59d

Browse files
authored
Merge pull request #6116 from commercialhaskell/update-ci
Update CI to once again not distinguish Windows
2 parents 0b647e2 + 44cc61f commit 935d59d

File tree

2 files changed

+10
-80
lines changed

2 files changed

+10
-80
lines changed

.github/workflows/integration-tests.yml

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ on:
1616
env:
1717
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818

19-
# As of 26 December 2022, ubuntu-latest, windows-latest and macos-latest come
20-
# with Stack 2.9.1. ubuntu-latest and macos-latest come with GHC 9.4.3.
21-
# windows-latest comes with GHC 9.4.2. windows-latest comes with NSIS 3.08, for
22-
# which the default value of the 'Unicode' installer attribute is 'true'.
19+
# As of 5 May 2023, ubuntu-latest, windows-latest and macos-latest come
20+
# with Stack 2.9.3 and GHC 9.6.1. windows-latest comes with NSIS 3.08, for which
21+
# the default value of the 'Unicode' installer attribute is 'true'.
2322

2423
jobs:
2524
integration-tests:
@@ -56,20 +55,11 @@ jobs:
5655
~\AppData\Local\Programs\stack
5756
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}-${{ matrix.cache-bust }}
5857

59-
# Separating out Unix-like OS from Windows because of the problem of
60-
# upgrading GitHub-supplied Stack 2.9.1 to 2.9.3 on Windows
61-
- name: Install deps and run checks on Unix-like OS
62-
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
58+
- name: Install deps and run checks
6359
shell: bash
6460
run: |
6561
set -ex
6662
67-
# Stack 2.9.3 is required to build Stack.
68-
stack upgrade
69-
70-
# Check the Stack version
71-
stack --version
72-
7363
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]
7464
then
7565
# Retry installing nix due to nondeterministic error
@@ -107,35 +97,6 @@ jobs:
10797
10898
set +ex
10999
110-
# Separating out Windows because of the problem of upgrading GitHub-supplied
111-
# Stack 2.9.1 to 2.9.3 on Windows
112-
- name: Install deps and run checks on Windows
113-
if: startsWith(runner.os, 'Windows')
114-
shell: bash
115-
run: |
116-
set -ex
117-
118-
# Stack 2.9.3 is required to build Stack. The --local-bin-path is
119-
# required to allow Stack (effectively) to overwrite the currently
120-
# running Stack executable. The should be fixed in later versions of
121-
# Stack that reflect
122-
# https://github.com/commercialhaskell/stack/pull/6023
123-
stack --local-bin-path /c/hostedtoolcache/windows/stack/2.9.1/x64 upgrade
124-
125-
# Check the Stack version
126-
stack --version
127-
128-
# In case GHCup hooks have been created, remove them
129-
if [ -d $(stack path --stack-root)/hooks ]
130-
then
131-
rm -Rf $(stack path --stack-root)/hooks
132-
fi
133-
134-
# Do this in the same step as installing deps to get relevant env var modifications
135-
stack etc/scripts/release.hs check ${{ matrix.release-args }}
136-
137-
set +ex
138-
139100
- name: Build bindist
140101
shell: bash
141102
run: |

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ on:
99
- rc/**
1010
workflow_dispatch:
1111

12-
# As of 26 December 2022, ubuntu-latest, windows-latest and macos-latest come
13-
# with Stack 2.9.1. ubuntu-latest and macos-latest come with GHC 9.4.3.
14-
# windows-latest comes with GHC 9.4.2.
12+
# As of 5 May 2023, ubuntu-latest, windows-latest and macos-latest come
13+
# with Stack 2.9.3 and GHC 9.6.1.
1514

1615
jobs:
1716
pedantic:
@@ -69,20 +68,11 @@ jobs:
6968
~\AppData\Local\Programs\stack
7069
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}-${{ matrix.extra-suffix }}
7170

72-
# Separating out Unix-like OS from Windows because of the problem of
73-
# upgrading GitHub-supplied Stack 2.9.1 to 2.9.3 on Windows
74-
- name: Run tests on Unix-like OS
75-
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
71+
- name: Run tests
7672
shell: bash
7773
run: |
7874
set -ex
7975
80-
# Stack 2.9.3 is required to build Stack.
81-
stack upgrade
82-
83-
# Check the Stack version
84-
stack --version
85-
8676
if [[ "${{ matrix.extra-suffix }}" == "alpine" ]]
8777
then
8878
mkdir -p ~/.stack
@@ -102,6 +92,9 @@ jobs:
10292
if [[ "${{ matrix.os }}" == "macos-latest" ]]
10393
then
10494
echo "Skipping ldd check on Mac"
95+
elif [[ "${{ matrix.os }}" == "windows-latest" ]]
96+
then
97+
echo "Skipping ldd check on Windows"
10598
elif [[ "${{ matrix.extra-suffix }}" == "alpine" ]]
10699
then
107100
# ldd returns exit code 1 if it's static, so failure is success
@@ -111,27 +104,3 @@ jobs:
111104
fi
112105
113106
./bin/stack --version
114-
115-
# Separating out Windows because of the problem of upgrading GitHub-supplied
116-
# Stack 2.9.1 to 2.9.3 on Windows
117-
- name: Run tests on Windows
118-
if: startsWith(runner.os, 'Windows')
119-
shell: bash
120-
run: |
121-
set -ex
122-
123-
# Stack 2.9.3 is required to build Stack. The --local-bin-path is
124-
# required to allow Stack (effectively) to overwrite the currently
125-
# running Stack executable. The should be fixed in later versions of
126-
# Stack that reflect
127-
# https://github.com/commercialhaskell/stack/pull/6023
128-
stack --local-bin-path /c/hostedtoolcache/windows/stack/2.9.1/x64 upgrade
129-
130-
# Check the Stack version
131-
stack --version
132-
133-
stack test ${{ matrix.stack-args }} --haddock --no-haddock-deps --ghc-options="-Werror -O0" --copy-bins --local-bin-path bin
134-
135-
echo "Skipping ldd check on Windows"
136-
137-
./bin/stack --version

0 commit comments

Comments
 (0)