summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInari Listenmaa <inari.listenmaa@gmail.com>2022-03-05 05:49:43 +0100
committerGitHub <noreply@github.com>2022-03-05 05:49:43 +0100
commit1b41e94f83feb5bba7a12780128f305573477b84 (patch)
tree8fd1eac78352eccb080d5ee2fbb4e154135d9897
parente4b2f281d97f97317df37b5e296cea371c334f37 (diff)
parent308f4773dc8f939ca66977382047f734752d1ed3 (diff)
Merge pull request #138 from anka-213/patch-1
Fix stack ci
-rw-r--r--.github/workflows/build-all-versions.yml17
-rw-r--r--stack-ghc8.10.4.yaml14
-rw-r--r--stack-ghc8.10.7.yaml12
-rw-r--r--stack.yaml9
4 files changed, 27 insertions, 25 deletions
diff --git a/.github/workflows/build-all-versions.yml b/.github/workflows/build-all-versions.yml
index 9ab8a0622..445493065 100644
--- a/.github/workflows/build-all-versions.yml
+++ b/.github/workflows/build-all-versions.yml
@@ -18,7 +18,7 @@ jobs:
ghc:
- "8.6.5"
- "8.8.3"
- - "8.10.1"
+ - "8.10.7"
exclude:
- os: macos-latest
ghc: 8.8.3
@@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
- - uses: haskell/actions/setup@v1
+ - uses: haskell/actions/setup@v1.2.9
id: setup-haskell-cabal
name: Setup Haskell
with:
@@ -66,25 +66,32 @@ jobs:
strategy:
matrix:
stack: ["latest"]
- ghc: ["7.10.3","8.0.2", "8.2.2", "8.4.4", "8.6.5", "8.8.4"]
+ ghc: ["7.10.3","8.0.2", "8.2.2", "8.4.4", "8.6.5", "8.8.4", "8.10.7"]
# ghc: ["8.8.3"]
steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
- - uses: haskell/actions/setup@v1
+ - uses: haskell/actions/setup@v1.2.9
name: Setup Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: 'latest'
enable-stack: true
+
+ # Fix linker errrors on ghc-7.10.3 for ubuntu (see https://github.com/commercialhaskell/stack/blob/255cd830627870cdef34b5e54d670ef07882523e/doc/faq.md#i-get-strange-ld-errors-about-recompiling-with--fpic)
+ - run: sed -i.bak 's/"C compiler link flags", "/&-no-pie /' /home/runner/.ghcup/ghc/7.10.3/lib/ghc-7.10.3/settings
+ if: matrix.ghc == '7.10.3'
+
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
- key: ${{ runner.os }}-${{ matrix.ghc }}-stack
+ key: ${{ runner.os }}-${{ matrix.ghc }}-stack--${{ hashFiles(format('stack-ghc{0}', matrix.ghc)) }}
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.ghc }}-stack
- name: Build
run: |
diff --git a/stack-ghc8.10.4.yaml b/stack-ghc8.10.4.yaml
deleted file mode 100644
index b10f66e4f..000000000
--- a/stack-ghc8.10.4.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-resolver: lts-18.0 # ghc 8.10.4
-
-extra-deps:
-- network-2.6.3.6
-- httpd-shed-0.4.0.3
-- cgi-3001.5.0.0@sha256:3d1193a328d5f627a021a0ef3927c1ae41dd341e32dba612fed52d0e3a6df056,2990
-- json-0.10@sha256:d9fc6b07ce92b8894825a17d2cf14799856767eb30c8bf55962baa579207d799,3210
-- multipart-0.2.0@sha256:b8770e3ff6089be4dd089a8250894b31287cca671f3d258190a505f9351fa8a9,1084
-
-# flags:
-# gf:
-# c-runtime: true
-# extra-lib-dirs:
-# - /usr/local/lib
diff --git a/stack-ghc8.10.7.yaml b/stack-ghc8.10.7.yaml
new file mode 100644
index 000000000..4b3f6643a
--- /dev/null
+++ b/stack-ghc8.10.7.yaml
@@ -0,0 +1,12 @@
+resolver: lts-18.27 # ghc 8.10.7
+
+extra-deps:
+- network-2.6.3.6
+- httpd-shed-0.4.0.3
+
+# flags:
+# gf:
+# server: true
+# c-runtime: true
+# extra-lib-dirs:
+# - /usr/local/lib
diff --git a/stack.yaml b/stack.yaml
index 3a79afdf0..128b91f8a 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -1,18 +1,15 @@
-# This default stack file is a copy of stack-ghc8.10.4.yaml
+# This default stack file is a copy of stack-ghc8.10.7.yaml
# But committing a symlink can be problematic on Windows, so it's a real copy.
# See: https://github.com/GrammaticalFramework/gf-core/pull/106
-
-resolver: lts-18.0 # ghc 8.10.4
+resolver: lts-18.27 # ghc 8.10.7
extra-deps:
- network-2.6.3.6
- httpd-shed-0.4.0.3
-- cgi-3001.5.0.0@sha256:3d1193a328d5f627a021a0ef3927c1ae41dd341e32dba612fed52d0e3a6df056,2990
-- json-0.10@sha256:d9fc6b07ce92b8894825a17d2cf14799856767eb30c8bf55962baa579207d799,3210
-- multipart-0.2.0@sha256:b8770e3ff6089be4dd089a8250894b31287cca671f3d258190a505f9351fa8a9,1084
# flags:
# gf:
+# server: true
# c-runtime: true
# extra-lib-dirs:
# - /usr/local/lib