From c0bc72ee51337b7f3a1eafdc8822e037f55a5231 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 5 Jan 2025 18:56:10 +0800 Subject: [PATCH] Test --- .github/workflows/ci-wasm32-wasi.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-wasm32-wasi.yml b/.github/workflows/ci-wasm32-wasi.yml index 1249940..9cfea35 100644 --- a/.github/workflows/ci-wasm32-wasi.yml +++ b/.github/workflows/ci-wasm32-wasi.yml @@ -11,6 +11,7 @@ jobs: GHC: 9.10.1.20241021 steps: - name: Install GHCup + id: ghcup uses: haskell/ghcup-setup@v1 with: cabal: latest-prerelease @@ -30,8 +31,8 @@ jobs: ./setup.sh popd source ~/.ghc-wasm/env - ghc=$(ghcup -s cross list -r -t ghc -o | grep wasm | tail -1 | awk '{ print $2 }') - ghcup install ghc --set ${ghc} -- --host=x86_64-linux --with-intree-gmp --with-system-libffi + ghc=$(${{ steps.ghcup.outputs.path }} -s cross list -r -t ghc -o | grep wasm | tail -1 | awk '{ print $2 }') + ${{ steps.ghcup.outputs.path }} install ghc --set ${ghc} -- --host=x86_64-linux --with-intree-gmp --with-system-libffi - uses: actions/checkout@v4 @@ -39,9 +40,12 @@ jobs: run: | set -eux + source ~/.ghc-wasm/env + cabal update + cp ~/.ghc-wasm/wasi-sdk/share/misc/config.* . autoreconf -i - cabal build -w wasm32-wasi-ghc --with-ghc-pkg=wasm32-wasi-ghc-pkg --with-hsc2hs=wasm32-wasi-hsc2hs --with-gcc=wasm32-wasi-clang --project-file=cabal.project.wasm32-wasi build + cabal --project-file=cabal.project.wasm32-wasi build -w wasm32-wasi-ghc --with-ghc-pkg=wasm32-wasi-ghc-pkg --with-hsc2hs=wasm32-wasi-hsc2hs --with-gcc=wasm32-wasi-clang ./test-wasm32-wasi.mjs