Skip to content

Commit bd6a996

Browse files
committed
fix old GitHub Action
1 parent ed40791 commit bd6a996

File tree

5 files changed

+82
-158
lines changed

5 files changed

+82
-158
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# modified from https://github.com/jgm/pandoc/blob/master/.github/workflows/ci.yml
2+
name: Haskell library and example
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
on:
9+
push:
10+
branches:
11+
- '**'
12+
paths-ignore: []
13+
pull_request:
14+
paths-ignore: []
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
ghc: ['9.6.7','9.8.4','9.10.1']
22+
cabal: ['3.14.2.0']
23+
os: [ubuntu-latest]
24+
name: Haskell GHC ${{ matrix.ghc }} sample
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: haskell/[email protected]
28+
with:
29+
ghc: ${{ matrix.ghc }}
30+
cabal: ${{ matrix.cabal }}
31+
config: |
32+
# don't cache metadata files based on last access time
33+
meta-cache: 0
34+
# see https://github.com/haskell/ghcup-hs/blob/master/data/config.yaml
35+
# for full documentation
36+
url-source:
37+
- GHCupURL
38+
- prereleases
39+
- name: Cabal Update
40+
run: |
41+
cabal update
42+
43+
- name: Build Haskell
44+
run: |
45+
cabal build all --enable-tests
46+
47+
- uses: purescript-contrib/setup-purescript@main
48+
with:
49+
spago: "unstable"
50+
51+
- name: Cache PureScript dependencies
52+
uses: actions/[email protected]
53+
with:
54+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
55+
path: |
56+
.spago
57+
output
58+
test/RoundTripArgonautAesonGeneric/app/output
59+
test/RoundTripJsonHelpers/app/output
60+
61+
- name: Build PureScript
62+
run: |
63+
spago build
64+
cd test/RoundTripArgonautAesonGeneric/app
65+
spago build
66+
cd ../../../
67+
cd test/RoundTripJsonHelpers/app
68+
spago build
69+
70+
- name: Haskell Tests
71+
run: |
72+
cabal test all --disable-optimization
73+
74+
- name: Spago Tests
75+
run: |
76+
spago test

.github/workflows/haskell.yml

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

.github/workflows/nix-flake.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: "Nix Flake"
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
27
on:
38
pull_request:
49
push:

.github/workflows/purescript.yml

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

purescript-bridge.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ library
3333
, Language.PureScript.Bridge.Tuple
3434
, Language.PureScript.Bridge.TypeInfo
3535
, Language.PureScript.Bridge.TypeParameters
36-
build-depends: base >=4.8 && < 6.0
36+
build-depends: base >=4.18 && < 6.0
3737
, containers
3838
, directory
3939
, filepath

0 commit comments

Comments
 (0)