This repository was archived by the owner on Oct 11, 2025. It is now read-only.
Misc updates #98
Workflow file for this run
This file contains hidden or 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: build | |
| on: | |
| merge_group: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| nix-build: | |
| name: nix-build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: install-nix | |
| uses: DeterminateSystems/nix-installer-action@v16 | |
| - name: gen-plan-json | |
| id: gen-plan-json | |
| run: | | |
| nix develop --command bash -c 'cd frontend && wasm32-wasi-cabal update && wasm32-wasi-cabal build ghc-wasm-miso-examples --dry-run && echo WASM32_WASI_GHC=$(which wasm32-wasi-ghc) >> $GITHUB_OUTPUT' | |
| - name: cabal-cache | |
| uses: actions/cache@v4 | |
| with: | |
| key: nix-${{ hashFiles('dist-newstyle/cache/plan.json') }} | |
| restore-keys: nix- | |
| path: | | |
| ~/.ghc-wasm/.cabal/store | |
| dist-newstyle | |
| - name: build-frontend | |
| run: | | |
| nix develop --command bash -c "cd frontend && exec ./build.sh --low-memory-unused --converge -O4" | |
| ghcup-build: | |
| name: ghcup-build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: ghc-wasm-meta | |
| run: | | |
| pushd "$(mktemp -d)" | |
| curl -f -L --retry 5 https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta/-/archive/master/ghc-wasm-meta-master.tar.gz | tar xz --strip-components=1 | |
| SKIP_GHC=1 ./setup.sh | |
| ~/.ghc-wasm/add_to_github_path.sh | |
| popd | |
| - name: cabal | |
| run: | | |
| ghcup install cabal --set latest | |
| - name: wasm32-wasi-ghc | |
| run: | | |
| ghcup config add-release-channel https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta/-/raw/master/ghcup-wasm-0.0.9.yaml | |
| ghcup install ghc --set wasm32-wasi-9.12 -- $CONFIGURE_ARGS | |
| - uses: dw-labs-org/dart-sass-gha@v1 | |
| - name: gen-plan-json | |
| run: | | |
| cd frontend | |
| cabal \ | |
| --with-compiler=wasm32-wasi-ghc \ | |
| --with-hc-pkg=wasm32-wasi-ghc-pkg \ | |
| --with-hsc2hs=wasm32-wasi-hsc2hs \ | |
| update | |
| cabal \ | |
| --with-compiler=wasm32-wasi-ghc \ | |
| --with-hc-pkg=wasm32-wasi-ghc-pkg \ | |
| --with-hsc2hs=wasm32-wasi-hsc2hs \ | |
| build ghc-wasm-miso-examples --dry-run | |
| - name: cabal-cache | |
| uses: actions/cache@v4 | |
| with: | |
| key: ghcup-${{ hashFiles('dist-newstyle/cache/plan.json') }} | |
| restore-keys: ghcup- | |
| path: | | |
| ~/.local/state/cabal/store | |
| dist-newstyle | |
| - name: build-frontend | |
| run: | | |
| cd frontend | |
| ./build.sh --low-memory-unused --converge -O4 | |
| non-nix-build: | |
| name: non-nix-build | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: ghc-wasm-meta | |
| run: | | |
| pushd "$(mktemp -d)" | |
| curl -f -L --retry 5 https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta/-/archive/master/ghc-wasm-meta-master.tar.gz | tar xz --strip-components=1 | |
| ./setup.sh | |
| ~/.ghc-wasm/add_to_github_path.sh | |
| popd | |
| env: | |
| FLAVOUR: '9.12' | |
| - uses: dw-labs-org/dart-sass-gha@v1 | |
| - name: gen-plan-json | |
| run: | | |
| cd frontend | |
| wasm32-wasi-cabal build ghc-wasm-miso-examples --dry-run | |
| - name: cabal-cache | |
| uses: actions/cache@v4 | |
| with: | |
| key: vanilla-${{ hashFiles('dist-newstyle/cache/plan.json') }} | |
| restore-keys: vanilla- | |
| path: | | |
| ~/.ghc-wasm/.cabal/store | |
| dist-newstyle | |
| - name: build-frontend | |
| run: | | |
| cd frontend | |
| ./build.sh --low-memory-unused --converge -O4 | |
| - name: upload-pages-artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: frontend/dist | |
| retention-days: 90 | |
| - name: deploy-pages | |
| uses: actions/deploy-pages@v4 |