Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
469a76d
Add Action that builds with devx
hamishmack Apr 18, 2023
67b6992
cabal build all
hamishmack Apr 18, 2023
4814ae5
Use "-iog"
hamishmack Apr 18, 2023
5f6c342
Try caching cabal store
hamishmack Apr 18, 2023
c036459
Include target-platform in cabal store path
hamishmack Apr 18, 2023
06ddebd
Just linux and windows for now
hamishmack Apr 18, 2023
b8ea1d0
Update devx.yml
angerman Apr 18, 2023
add3d71
Update devx.yml
angerman Apr 18, 2023
9b6443b
Avoid using $HOME
hamishmack Apr 18, 2023
a71e82c
Avoid using $HOME
hamishmack Apr 18, 2023
c7dc1ab
Update cabal.project
angerman Apr 19, 2023
66028a7
Update devx.yml
angerman Apr 19, 2023
6562603
Update devx.yml
angerman Apr 19, 2023
4396ee6
Update devx.yml
angerman Apr 19, 2023
5c39f14
Update devx.yml
angerman Apr 19, 2023
d4c5f2c
Update devx.yml
angerman Apr 19, 2023
3d2a600
Update devx.yml
angerman Apr 19, 2023
e592460
Update devx.yml
angerman Apr 19, 2023
2e83c04
s/961/ghc961
hamishmack Apr 19, 2023
9f19ce1
Merge branch 'master' into hkm/gha-using-devx
angerman Apr 24, 2023
b725037
Merge remote-tracking branch 'origin/master' into hkm/gha-using-devx
hamishmack Apr 26, 2023
8a1ea73
Add macOS
hamishmack Apr 26, 2023
42241e9
Try input-output-hk/devx@hkm/action-yaml
hamishmack Apr 27, 2023
48382d0
Merge branch 'master' into hkm/gha-using-devx
angerman Apr 27, 2023
33bfa2c
Update devx.yml
angerman Apr 27, 2023
ac08fa6
Merge branch 'master' into hkm/gha-using-devx
angerman Apr 27, 2023
b9a7f3d
Delete devx
angerman Apr 27, 2023
cd3556d
Delete fetch-docker.sh
angerman Apr 27, 2023
d13b6d6
Merge branch 'master' into hkm/gha-using-devx
angerman Apr 17, 2024
9d3e315
Update devx.yml
angerman Apr 17, 2024
2c70953
Update devx.yml
angerman Apr 17, 2024
20cf0a4
Merge branch 'master' into hkm/gha-using-devx
angerman Apr 17, 2024
1604be1
Update devx.yml
angerman Apr 17, 2024
584dec0
Update devx.yml
angerman Apr 17, 2024
b540034
Update devx.yml
angerman Apr 17, 2024
69f08dc
Add patched cabal
angerman Apr 17, 2024
d965f5a
Update devx.yml
angerman Apr 17, 2024
3c60f1d
Update devx.yml
angerman Apr 17, 2024
34165af
Update devx.yml
angerman Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/devx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: DevX/Haskell
on:
push:
workflow_dispatch:

defaults:
run:
shell: devx {0}

jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ x86_64-linux, x86_64-darwin ]
compiler-nix-name: [ ghc96 ] # , ghc810 ]
target-platform: [ "" ] # , "-windows" ]

runs-on: ${{ matrix.platform == 'x86_64-linux' && 'ubuntu-latest' || 'macos-latest' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install GHC and Cabal
uses: input-output-hk/actions/devx@latest
with:
platform: ${{ matrix.platform }}
target-platform: ${{ matrix.target-platform }}
compiler-nix-name: ${{ matrix.compiler-nix-name }}
# for now we'll set minimal to false, as minimal-iog images don't exist.
minimal: false
iog: true
- name: add patched cabal
run: |
mkdir ~/bin
curl -L https://ci.zw3rk.com/job/input-output-hk-haskell-nix-example/pullrequest-2/x86_64-linux.cabal-install-static/latest/download/1 | gunzip > ~/bin/cabal
curl -L https://ci.zw3rk.com/job/input-output-hk-haskell-nix-example/pullrequest-2/x86_64-linux.cabal-install-hooks/latest/download/1 | tar xzf - -C ~/bin
chmod +x ~/bin/cabal
chmod +x ~/bin/*Hook*
- name: cabal update
run: PATH=$HOME/bin:$PATH cabal update
- name: cabal build dependencies
env:
CABAL_AWS_ACCESS_KEY_ID: ${{ secrets.CABAL_AWS_ACCESS_KEY_ID }}
CABAL_AWS_SECRET_ACCESS_KEY: ${{ secrets.CABAL_AWS_SECRET_ACCESS_KEY }}
run: PATH=$HOME/bin:$PATH cabal build all -j --enable-tests --only-dependencies
- name: cabal build
env:
CABAL_AWS_ACCESS_KEY_ID: ${{ secrets.CABAL_AWS_ACCESS_KEY_ID }}
CABAL_AWS_SECRET_ACCESS_KEY: ${{ secrets.CABAL_AWS_SECRET_ACCESS_KEY }}
run: PATH=$HOME/bin:$PATH cabal build all -j --enable-tests
- name: cabal test
run: PATH=$HOME/bin:$PATH cabal test all -j --enable-tests --test-show-details=direct
8 changes: 8 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ packages:
orphans-deriving-via
strict-checked-vars

constraints:
-- this is needed to make it compatible with non-gmp
-- ghc 9.0+ builds (e.g. with ghc-bignum). Prior to
-- 1.1.4.0, it unconditonally incuded the Data.Bit.Gmp
-- module, which in turn blew up when loading bitvec
-- during TH into a compiler without libgmp.
bitvec >= 1.1.4.0

-- Ensures colourized output from test runners
test-show-details: direct

Expand Down