Skip to content

Commit 7a67311

Browse files
committed
Merge branch 'update-ghc-to-902' into update-ghc-to-9.6.7
2 parents 97aa541 + 2dec50c commit 7a67311

File tree

2 files changed

+34
-36
lines changed

2 files changed

+34
-36
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,15 @@ on:
55
pull_request: { branches: [main] }
66
create: { tags: [v*] }
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
defaults:
913
run:
1014
shell: bash
1115

1216
jobs:
13-
cancel:
14-
name: Cancel redundant actions already in progress
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Cancel actions in progress of same workflow and same branch
18-
uses: styfle/[email protected]
19-
with:
20-
access_token: ${{ github.token }}
21-
2217
# Check that Haskell code is formatted.
2318
code-formatter:
2419
runs-on: ubuntu-latest
@@ -31,6 +26,7 @@ jobs:
3126
runs-on: ${{ matrix.os }}
3227
needs: code-formatter
3328
strategy:
29+
fail-fast: false
3430
matrix:
3531
os:
3632
- ubuntu-latest
@@ -44,11 +40,15 @@ jobs:
4440
# If you change it, make sure to adjust lower bounds there to reflect the change.
4541
# Also, make sure to adjust tested-with field in package.yaml so that it contains
4642
# corresponding GHC version.
43+
<<<<<<< HEAD
4744
stack-resolver: lts-22.44
45+
=======
46+
stack-resolver: lts-19.33
47+
>>>>>>> @{-1}
4848

4949
steps:
5050
- name: Checkout the repo
51-
uses: actions/checkout@v2
51+
uses: actions/checkout@v4
5252

5353
- name: Cache (Unix)
5454
uses: actions/cache@v4
@@ -77,7 +77,7 @@ jobs:
7777
restore-keys: |
7878
haskell-${{ runner.os }}-${{ hashFiles('stack.yaml') }}-
7979
- name: Cache (Windows)
80-
uses: actions/cache@v2
80+
uses: actions/cache@v4
8181
if: runner.os == 'Windows'
8282
with:
8383
# C\:sr is where stack installs compiled dependencies.
@@ -98,29 +98,28 @@ jobs:
9898
# We are setting up haskell via ghcup instead of using haskell/actions/setup
9999
# because the mentioned gh action can be months late with the latest versions
100100
# of Stack.
101-
- name: Set up Haskell (Stack) via ghcup (Unix)
102-
if: runner.os == 'Linux' || runner.os == 'macOS'
103-
run: |
104-
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
105-
export BOOTSTRAP_HASKELL_INSTALL_STACK=1
106-
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
107-
108-
- name: Set up Haskell (Stack) via ghcup (Win)
109-
if: runner.os == 'Windows'
110-
run: |
111-
Set-ExecutionPolicy Bypass -Scope Process -Force
112-
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
113-
Invoke-Command -ScriptBlock ([ScriptBlock]::Create(".{$(Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing)} -InstallStack"))
114-
shell: powershell
101+
# - name: Set up Haskell (Stack) via ghcup (Unix)
102+
# if: runner.os == 'Linux' || runner.os == 'macOS'
103+
# run: |
104+
# export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
105+
# export BOOTSTRAP_HASKELL_INSTALL_STACK=1
106+
# curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
107+
#
108+
# - name: Set up Haskell (Stack) via ghcup (Win)
109+
# if: runner.os == 'Windows'
110+
# run: |
111+
# Set-ExecutionPolicy Bypass -Scope Process -Force
112+
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
113+
# Invoke-Command -ScriptBlock ([ScriptBlock]::Create(".{$(Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing)} -InstallStack"))
114+
# shell: powershell
115115

116116
# NOTE: I commented out this in favor of manual setup above, since with this action we
117117
# couldn't get the latest version of Stack.
118-
# - name: Set up Haskell (Stack)
119-
# uses: haskell/actions/setup@v1
120-
# with:
121-
# ghc-version: latest
122-
# enable-stack: true
123-
# stack-version: latest
118+
- uses: haskell-actions/setup@v2
119+
with:
120+
ghc-version: latest
121+
enable-stack: true
122+
stack-version: latest
124123

125124
- name: Set Stack resolver
126125
if: matrix.stack-resolver != 'from-stack-yaml'
@@ -134,10 +133,10 @@ jobs:
134133
stack path --stack-root
135134
stack ghc -- --version
136135
ghc --version
137-
138-
- name: Build dependencies
136+
137+
- name: Build dependencies
139138
run: stack --install-ghc test --only-dependencies
140-
139+
141140
- name: Build StrongPath & Run tests
142141
run: stack test
143142

package.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ category: System, Filesystem, FilePath
1515

1616
description: Replacement for a FilePath that enables you to handle filepaths in your code in a type-safe manner. You can specify at type level if they are relative, absolute, file, directory, posix, windows, and even to which file or directory they point to or are relative to.
1717

18-
# Todo figure out what to do with this
19-
tested-with: GHC == 8.10.7, GHC == 9.0.1 # lts-18.21, nightly-2022-01-04
18+
tested-with: GHC == 9.0.2 # lts-19.33
2019

2120
dependencies:
2221
- base >= 4.7 && < 5

0 commit comments

Comments
 (0)