-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies to make everything build
- Loading branch information
1 parent
9fb3f1b
commit 5191ece
Showing
12 changed files
with
95 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Continuous integration with cabal | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
continuous-integration: | ||
strategy: | ||
matrix: | ||
ghc-version: | ||
- "9.0.2" | ||
- "9.2.8" | ||
- "9.4.5" | ||
- "9.6.4" | ||
- "9.8.2" | ||
- "9.10.1" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install cabal/ghc | ||
uses: haskell-actions/setup@v2 | ||
id: setup-haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc-version }} | ||
cabal-version: '3.10.3.0' | ||
|
||
- name: Generate freeze file | ||
run: | | ||
cabal update | ||
cabal configure --disable-optimization --enable-tests | ||
cabal freeze | ||
# 'cabal freeze' will use the nearest index state which might not be exactly equal | ||
# to the index state specified in 'cabal.project' | ||
sed '/^index-state: /d' cabal.project.freeze > dependencies-versions | ||
- name: Cache cabal work | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
dist-newstyle | ||
${{ steps.setup-haskell.outputs.cabal-store }} | ||
# We are using the hash of 'cabal.project.local' so that different levels | ||
# of optimizations are cached separately | ||
key: ${{ runner.os }}-${{ hashFiles('dependencies-versions', 'cabal.project', 'cabal.project.local') }}-cabal-install | ||
|
||
- name: Build dependencies only | ||
run: cabal build all --only-dependencies | ||
|
||
- name: Build all packages | ||
run: cabal build all | ||
|
||
- name: Run all tests | ||
run: cabal test all |
2 changes: 1 addition & 1 deletion
2
.github/workflows/distributed-process-ci.yml → .github/workflows/stack.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: distributed-process-ci | ||
name: Continuous integration with stack | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
packages: packages/*/**.cabal | ||
|
||
allow-newer: distributed-static:containers | ||
, distributed-process-extras:containers | ||
, distributed-process-extras:hashable | ||
, distributed-process-extras:stm | ||
package distributed-process-tests | ||
flags: +tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters