Revise README for improved clarity and resources #4235
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: Miso CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ners/simply-nix@main | |
| with: | |
| reclaim_space: true | |
| - uses: actions/checkout@v3.5.3 | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.9.1 | |
| with: | |
| access_token: ${{ github.token }} | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: haskell-miso-cachix | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Nix channel update | |
| run: nix-channel --update | |
| - name: Cabal install | |
| run: nix-env -iA pkgs.cabal-install -f . | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: Bun install | |
| run: nix-env -iA bun -f . && bun install | |
| - name: Miso.ts tests | |
| run: bun run test | |
| - name: Bun build prod | |
| run: bun run build && bun run prod | |
| - name: (JS) Miso GHCJS (GHCJS 8.6) | |
| run: nix-build -A miso-ghcjs | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (JS) Miso GHCJS Production (GHCJS 8.6) | |
| run: nix-build -A miso-ghcjs-prod | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (x86) Miso GHC (GHC 8.6.5) | |
| run: nix-build -A miso-ghc | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (JS) Miso GHCJS (GHC 9.12.2) | |
| run: nix-build -A miso-ghcjs-9122 | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (x86) Miso GHC (GHC 9.12.2) | |
| run: nix-build -A miso-ghc-9122 | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (JS) Miso sample app (GHCJS 8.6) | |
| run: nix-build -A sample-app-js | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (x86) Miso sample app jsaddle (GHC 8.6.5) | |
| run: nix-build -A sample-app | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (JS) Miso integration tests | |
| run: nix-build -A playwright-js && ./result/bin/playwright | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (WASM) Miso integration tests | |
| run: nix-build -A playwright-wasm && ./result/bin/playwright | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| - name: (GHCJS) Miso integration tests | |
| run: nix-build -A playwright-ghcjs && ./result/bin/playwright | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3.5.3 | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.9.1 | |
| with: | |
| access_token: ${{ github.token }} | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: haskell-miso-cachix | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Nix channel update | |
| run: nix-channel --update | |
| - name: Cabal install | |
| run: nix-env -iA pkgs.cabal-install -f . | |
| - name: Bun install | |
| run: nix-env -iA bun -f . && bun install | |
| - name: Miso.ts tests | |
| run: bun run test | |
| - name: Bun build prod | |
| run: bun run build && bun run prod | |
| # dmj: JS backend not working on Darwin (wasm-ld issue) | |
| # - name: (JS) Miso GHCJS (GHC 9.12.2) | |
| # run: nix-build -A miso-ghcjs-9122 | |
| - name: (x86) Miso GHC (GHC 9.12.2) | |
| run: nix-build -A miso-ghc-9122 | |
| - name: Nix garbage collection | |
| run: cabal clean && nix-collect-garbage -d | |
| # - name: (JS) Miso sample app (GHC 9.12.2) | |
| # run: nix-build -A sample-app-js-9122 | |
| # - name: (JS) Miso integration tests | |
| # run: nix-build -A playwright-js && ./result/bin/playwright | |
| - name: (WASM) Miso integration tests | |
| run: nix-build -A playwright-wasm && ./result/bin/playwright |