From a74f83f5f6c08cf64c471bb087bcc7010422ad4f Mon Sep 17 00:00:00 2001 From: Timothy Miller Date: Tue, 14 May 2024 11:33:05 -0400 Subject: [PATCH 1/3] Bumped field in cabal file --- bitcoin-scripting.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin-scripting.cabal b/bitcoin-scripting.cabal index 8e756ca..499a17b 100644 --- a/bitcoin-scripting.cabal +++ b/bitcoin-scripting.cabal @@ -12,7 +12,7 @@ category: Language build-type: Simple extra-source-files: CHANGELOG.md -tested-with: GHC == 8.10.4 +tested-with: GHC ==9.6.5 common base default-language: Haskell2010 From c929fb80720e2efffd85a7b45c6c8e3834fc6ec6 Mon Sep 17 00:00:00 2001 From: Timothy Miller Date: Tue, 14 May 2024 14:47:31 -0400 Subject: [PATCH 2/3] Added CI workflow --- .github/workflows/haskell-test.yaml | 65 +++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/haskell-test.yaml diff --git a/.github/workflows/haskell-test.yaml b/.github/workflows/haskell-test.yaml new file mode 100644 index 0000000..97cd962 --- /dev/null +++ b/.github/workflows/haskell-test.yaml @@ -0,0 +1,65 @@ +--- +name: Haskell Test + +on: + pull_request: + paths: + - bitcoin-scripting.cabal + - "src/**.hs" + - "test/**.hs" + - .github/workflows/haskell-test.yaml + types: + - synchronize + - opened + - reopened + - ready_for_review + push: + branches: + - master + paths: + - bitcoin-scripting.cabal + - "src/**.hs" + - "test/**.hs" + - .github/workflows/haskell-test.yaml + workflow_dispatch: + inputs: {} + +jobs: + haskell-test: + if: github.event.pull_request.draft == false || github.ref == 'refs/heads/master' + concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-haskell-test + cancel-in-progress: true + + permissions: + contents: read + packages: read + issues: read + checks: write + + runs-on: + labels: ubuntu-22.04-16cores + container: + image: haskell:9.6.5 + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: apt + run: | + apt update + apt install libsecp256k1-dev + + - name: cabal build + run: | + cabal update + cabal build + + - name: cabal test + run: | + cabal test From de3252fe515b0a1ccecfff17cddfa95909a541fb Mon Sep 17 00:00:00 2001 From: Timothy Miller Date: Tue, 14 May 2024 14:47:56 -0400 Subject: [PATCH 3/3] Added .stack-work to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7d1f2a0..218fa4a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /dist-newstyle/ /cabal.project.local +/.stack-work /TAGS