Files
torana/.github/workflows/web.yml
Amneesh Singh 8c101df12a nix: reorganize
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-08-08 20:07:30 +05:30

45 lines
1020 B
YAML

name: toranaWeb
on:
workflow_run:
workflows: ["torana"]
types:
- completed
workflow_dispatch:
env:
OUT_LINK: torana-web
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
auto-optimise-store = true
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v12
with:
name: pain
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: fmt checks
run: nix build .#torana-web-fmt -L
- name: clippy checks
run: nix build .#torana-web-clippy -L
- name: doc checks
run: nix build .#torana-web-doc -L
- name: build
run: nix build .#torana-web --out-link $OUT_LINK -L
- name: wasm-bindgen
run: >
nix develop .#torana-web
-c wasm-bindgen
--target web $OUT_LINK/bin/torana.wasm
--out-dir www