From 4f562d4269cf3070e9769ba34d8760caae3b538f Mon Sep 17 00:00:00 2001 From: tusharad Date: Wed, 13 Nov 2024 20:44:53 +0530 Subject: [PATCH] Building wasn in CI --- .github/workflows/haskell.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/haskell.yaml b/.github/workflows/haskell.yaml index 1dfab72..eec13ea 100644 --- a/.github/workflows/haskell.yaml +++ b/.github/workflows/haskell.yaml @@ -24,4 +24,16 @@ jobs: uses: freckle/stack-action@v5 with: stack-build-arguments: --ghc-options="-fno-warn-unused-imports -fno-warn-unused-matches -fno-warn-type-defaults -fno-warn-missing-export-lists" - stack-build-arguments-test: --ghc-options="-fno-warn-unused-imports -fno-warn-unused-matches -fno-warn-type-defaults -fno-warn-missing-export-lists" \ No newline at end of file + stack-build-arguments-test: --ghc-options="-fno-warn-unused-imports -fno-warn-unused-matches -fno-warn-type-defaults -fno-warn-missing-export-lists" + + - name: Set up environment variable + run: echo "FLAVOUR=9.8" >> $GITHUB_ENV + + - name: Download wasm32-wasi-cabal + run: | + curl https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/raw/master/bootstrap.sh | sh + source ~/.ghc-wasm/add_to_github_path.sh + + - name: Building wasm + run: | + wasm32-wasi-cabal build sql2er-wasm -f build-sql2er-wasm \ No newline at end of file