From 986bfae02813af102594d9e21538fc51cb8b75db Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Thu, 19 Sep 2024 19:36:57 +0100 Subject: [PATCH 1/2] CI: add riscv64 job --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a195b53..b8f6b94f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,7 +124,7 @@ jobs: strategy: fail-fast: true matrix: - arch: ['s390x', 'ppc64le'] + arch: ['s390x', 'ppc64le', 'riscv64'] steps: - uses: actions/checkout@v4 - uses: uraimo/run-on-arch-action@v2.7.2 From 140370589ca663ad7aa529b4dbdddae9b9e5a682 Mon Sep 17 00:00:00 2001 From: Sven Tennie Date: Fri, 20 Sep 2024 08:00:11 +0200 Subject: [PATCH 2/2] Add -fPIC --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8f6b94f..45d44cf2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,7 @@ jobs: apt-get install -y ghc libghc-tasty-quickcheck-dev libghc-syb-dev run: | ghc --version - ghc --make -XHaskell2010 -XBangPatterns -XDeriveDataTypeable -XDeriveGeneric -XDeriveLift -XFlexibleContexts -XFlexibleInstances -XLambdaCase -XMagicHash -XMultiWayIf -XNamedFieldPuns -XPatternSynonyms -XRankNTypes -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeOperators -XUnboxedTuples -optP-Wall -optP-Werror=undef -DPURE_HASKELL=0 -Iinclude -itests:tests/builder -o Main cbits/*.c tests/Main.hs +RTS -s + ghc --make -fPIC -XHaskell2010 -XBangPatterns -XDeriveDataTypeable -XDeriveGeneric -XDeriveLift -XFlexibleContexts -XFlexibleInstances -XLambdaCase -XMagicHash -XMultiWayIf -XNamedFieldPuns -XPatternSynonyms -XRankNTypes -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeOperators -XUnboxedTuples -optP-Wall -optP-Werror=undef -DPURE_HASKELL=0 -Iinclude -itests:tests/builder -o Main cbits/*.c tests/Main.hs +RTS -s ./Main +RTS -s bounds-checking: