Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraf812 committed Jul 12, 2024
1 parent f5a5fb1 commit 11f921d
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 207 deletions.
55 changes: 14 additions & 41 deletions .github/haskell-ci.patch
Original file line number Diff line number Diff line change
@@ -1,63 +1,36 @@
--- .github/workflows/haskell-ci.yml 2023-10-01 14:22:56.830944330 -0400
+++ .github/workflows/haskell-ci.yml-patched 2023-10-01 14:22:50.497720853 -0400
@@ -144,6 +144,7 @@
@@ -111,6 +111,7 @@ jobs:
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
HCDIR=/opt/$HCKIND/$HCVER
if [ "${{ matrix.setup-method }}" = ghcup ]; then
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
+ echo "$HOME/.ghcup/bin" >> "$GITHUB_PATH"
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
echo "HC=$HC" >> "$GITHUB_ENV"
@@ -152,6 +153,7 @@
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
else
HC=$HCDIR/bin/$HCKIND
+ echo "$HCDIR/bin" >> "$GITHUB_PATH"
echo "HC=$HC" >> "$GITHUB_ENV"
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
@@ -298,7 +300,7 @@
cat cabal.project.local
- name: dump install plan
run: |
- $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
+ $CABAL v2-build --flags=-bootstrap $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
cabal-plan
- name: restore cache
uses: actions/cache/restore@v3
@@ -308,17 +310,20 @@
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
+ echo "$HOME/.ghcup/bin" >> "$GITHUB_PATH"
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
echo "HC=$HC" >> "$GITHUB_ENV"
@@ -252,17 +253,20 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- name: install dependencies
run: |
- $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
- $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dependencies-only -j2 all
- - name: build w/o tests
+ $CABAL v2-build --flags=-bootstrap $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
+ $CABAL v2-build --flags=-bootstrap $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dependencies-only -j2 all
+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
+ $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dependencies-only -j2 all
+ - name: build w/o tests and install
run: |
- $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
+ $CABAL v2-install --reinstall --overwrite-policy=always --flags=-bootstrap $ARG_COMPILER --disable-tests --disable-benchmarks happy
+ $CABAL v2-install --reinstall --overwrite-policy=always $ARG_COMPILER --disable-tests --disable-benchmarks happy
- name: build
run: |
- $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
+ $CABAL v2-build --flags=-bootstrap $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
- name: tests
run: |
- $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
+ export HAPPY=$HOME/.cabal/bin/happy
+ export HC
+ export CABAL
+ $CABAL v2-test --flags=-bootstrap $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
+ $CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
- name: cabal check
run: |
cd ${PKGDIR_happy_frontend} || false
@@ -341,7 +346,7 @@
- name: unconstrained build
run: |
rm -f cabal.project.local
- $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
+ $CABAL v2-build --flags=-bootstrap $ARG_COMPILER --disable-tests --disable-benchmarks all
- name: save cache
uses: actions/cache/save@v3
if: always()
cd ${PKGDIR_happy_tabular} || false
170 changes: 66 additions & 104 deletions .github/workflows/haskell-ci.yml

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions happy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Description:
grammar. Happy works in a similar way to the @yacc@ tool for C.

tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -30,11 +31,11 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

extra-source-files:
ChangeLog.md
Expand Down Expand Up @@ -140,9 +141,9 @@ executable happy
main-is: Main.lhs

build-depends: base < 5,
array,
containers >= 0.4.2,
mtl >= 2.2.1,
array < 0.6,
containers >= 0.4.2 && < 0.8,
mtl >= 2.2.1 && < 2.4,
happy-codegen-common == 2.0,
happy-grammar == 2.0,
happy-tabular == 2.0,
Expand Down
17 changes: 9 additions & 8 deletions packages/backend-glr/happy-backend-glr.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Description:


tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -31,11 +32,11 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

data-dir: data

Expand All @@ -49,7 +50,7 @@ library
exposed-modules: Happy.Backend.GLR,
Happy.Backend.GLR.ProduceCode
build-depends: base < 5,
array,
array < 0.6,
happy-codegen-common == 2.0,
happy-grammar == 2.0,
happy-tabular == 2.0
Expand Down
17 changes: 9 additions & 8 deletions packages/backend-lalr/happy-backend-lalr.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Description:


tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -31,11 +32,11 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

data-dir: data

Expand All @@ -48,7 +49,7 @@ library
exposed-modules: Happy.Backend.LALR,
Happy.Backend.LALR.ProduceCode
build-depends: base < 5,
array,
array < 0.6,
happy-codegen-common == 2.0,
happy-grammar == 2.0,
happy-tabular == 2.0
Expand Down
17 changes: 9 additions & 8 deletions packages/codegen-common/happy-codegen-common.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Description:
which represents a directives as can be parsed and processed by happy.

tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -30,18 +31,18 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

library
hs-source-dirs: src

exposed-modules: Happy.CodeGen.Common.Options
build-depends: base < 5,
array
array < 0.6

default-language: Haskell98
default-extensions: CPP, MagicHash, FlexibleContexts
Expand Down
23 changes: 12 additions & 11 deletions packages/frontend/happy-frontend.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ Description:
have some Haskell-specific features.

tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -32,11 +33,11 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

library
hs-source-dirs: src
Expand All @@ -46,10 +47,10 @@ library
Happy.Frontend.PrettyGrammar

build-depends: base < 5,
array,
containers >= 0.4.2,
transformers >= 0.5.6.2,
mtl >= 2.2.2,
array < 0.6,
containers >= 0.4.2 && < 0.8,
transformers >= 0.5.6.2 && < 0.7,
mtl >= 2.2.2 && < 2.4,
happy-codegen-common == 2.0,
happy-grammar == 2.0

Expand Down
17 changes: 9 additions & 8 deletions packages/grammar/happy-grammar.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Description:
which represents a grammar as can be parsed and processed by happy.

tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -30,18 +31,18 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

library
hs-source-dirs: src

exposed-modules: Happy.Grammar
build-depends: base < 5,
array
array < 0.6

default-language: Haskell98
default-extensions: CPP, MagicHash, FlexibleContexts
Expand Down
19 changes: 10 additions & 9 deletions packages/tabular/happy-tabular.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Description:
which are further processed by a backend.

tested-with:
GHC == 9.8.1
GHC == 9.6.3
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -31,11 +32,11 @@ tested-with:
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.0.4
-- GHC == 7.10.3
-- GHC == 7.8.4
-- GHC == 7.6.3
-- GHC == 7.4.2
-- GHC == 7.0.4

library
hs-source-dirs: src
Expand All @@ -46,8 +47,8 @@ library
Happy.Tabular.LALR,
Happy.Tabular.NameSet
build-depends: base < 5,
array,
containers >= 0.4.2,
array < 0.6,
containers >= 0.4.2 && < 0.8,
happy-grammar == 2.0

default-language: Haskell98
Expand Down

0 comments on commit 11f921d

Please sign in to comment.