Skip to content

Commit

Permalink
[fix] update to ghc 94
Browse files Browse the repository at this point in the history
- fix the compile errors
- fix the test failures
- add github workflows to verify it keeps working
- add nix env
- prepare flake update such that we can update easily in the future
- reformat with stylish-haskell as good as possible
  • Loading branch information
MangoIV committed Oct 23, 2023
1 parent 4faca25 commit 7caf82f
Show file tree
Hide file tree
Showing 26 changed files with 968 additions and 154 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake -Lv
16 changes: 16 additions & 0 deletions .github/workflows/test-flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Check Flake"
on:
workflow_dispatch:
pull_request:
push:
jobs:
install-nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake check -Lv --allow-import-from-derivation --fallback --accept-flake-config
- run: nix build .#transitive-anns -Lv --fallback --accept-flake-config
- run: nix build .#ghc92-transitive-anns -Lv --fallback --accept-flake-config
21 changes: 21 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.stack-work/
*~
*~
.direnv
dist*
result*
.pre-commit-config.yaml
Loading

0 comments on commit 7caf82f

Please sign in to comment.