55 pull_request : { branches: [main] }
66 create : { tags: [v*] }
77
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
812defaults :
913 run :
1014 shell : bash
1115
1216jobs :
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- 19- with :
20- access_token : ${{ github.token }}
21-
2217 # Check that Haskell code is formatted.
2318 code-formatter :
2419 runs-on : ubuntu-latest
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
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
0 commit comments