Update checkout to v4 #386
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-wasm32-wasi | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
env: | |
GHC: 9.10.1.20241021 | |
steps: | |
- name: Install GHCup | |
id: ghcup | |
uses: haskell/ghcup-setup@v1 | |
with: | |
cabal: latest-prerelease | |
config: | | |
url-source: | |
- GHCupURL | |
- cross | |
- prereleases | |
- name: setup-ghc-wasm32-wasi | |
run: | | |
set -eux | |
pushd $(mktemp -d) | |
git clone https://gitlab.haskell.org/ghc/ghc-wasm-meta.git | |
cd ghc-wasm-meta/ | |
export SKIP_GHC=yes | |
./setup.sh | |
popd | |
source ~/.ghc-wasm/env | |
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 | |
- name: test | |
run: | | |
set -eux | |
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 | |
./test-wasm32-wasi.mjs |