Skip to content

Commit 9354ba4

Browse files
authored
Merge pull request #790 from IntersectMBO/jdral/lsm-tree-1.0.0.0
Release `lsm-tree-1.0.0.0`
2 parents d77b8e2 + 0f98376 commit 9354ba4

File tree

303 files changed

+905
-780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+905
-780
lines changed

.github/workflows/check-release-builds.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ jobs:
4141
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
4242
ghc-version: ["9.2", "9.4", "9.6", "9.8", "9.10", "9.12"]
4343
cabal-version: ["3.12"]
44+
exclude:
45+
# this configuration leads to a linker error when building/running the
46+
# cabal-list-public-library-targets script.
47+
- os: "windows-latest"
48+
ghc-version: "9.2"
49+
cabal-version: "3.12"
4450

4551
env:
4652
tag-name: ${{ github.ref_name }}
47-
release-build-target: |
48-
${{ startsWith(github.ref_name, 'blockio') && './blockio/blockio.cabal' || startsWith(github.ref_name, 'bloomfilter-blocked') && './bloomfilter-blocked/bloomfilter-blocked.cabal' || startsWith(github.ref_name, 'lsm-tree') && './lsm-tree.cabal' }}
53+
release-build-target: ${{ startsWith(github.ref_name, 'blockio') && './blockio/blockio.cabal' || startsWith(github.ref_name, 'bloomfilter-blocked') && './bloomfilter-blocked/bloomfilter-blocked.cabal' || startsWith(github.ref_name, 'lsm-tree') && './lsm-tree/lsm-tree.cabal' }}
4954

5055
steps:
5156
- name: 🗄️ Print release build target
@@ -101,8 +106,10 @@ jobs:
101106
key: check-release-build-${{ runner.os }}-ghc-${{ steps.setup-haskell.outputs.ghc-version }}-cabal-${{ steps.setup-haskell.outputs.cabal-version }}
102107
with:
103108
path: ${{ steps.setup-haskell.outputs.cabal-store }}
104-
key: ${{ env.key }}-plan-${{ hashFiles('dist-newstyle/cache/plan.json') }}
105-
restore-keys: ${{ env.key }}-
109+
key: ${{ env.key }}-tag-${{ env.tag-name }}-plan-${{ hashFiles('dist-newstyle/cache/plan.json') }}
110+
restore-keys: |
111+
${{ env.key }}-tag-${{ env.tag-name }}-
112+
${{ env.key }}-
106113
107114
- name: 🛠️ Build Cabal dependencies
108115
run: |
@@ -118,6 +125,9 @@ jobs:
118125
key: ${{ steps.cache-cabal.outputs.cache-primary-key }}
119126

120127
- name: 🏗️ Build
128+
shell: sh
121129
run: |
122-
cabal build all \
123-
--project-file="cabal.project.temp"
130+
./scripts/cabal-list-public-library-targets.hs '${{ env.release-build-target }}' | \
131+
tail -n +2 | \
132+
tr -d '\r' | \
133+
xargs -L 1 sh -c 'echo "$0" && cabal build --project-file=cabal.project.temp "$0"'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
uses: actions/upload-artifact@v4
137137
with:
138138
name: golden-files-${{ runner.os }}-ghc-${{ steps.setup-haskell.outputs.ghc-version }}-cabal-${{ steps.setup-haskell.outputs.cabal-version }}-plan-${{ hashFiles('dist-newstyle/cache/plan.json') }}
139-
path: test/golden-file-data
139+
path: lsm-tree/test/golden-file-data
140140
if-no-files-found: error
141141
retention-days: 1
142142

0 commit comments

Comments
 (0)