41 lines
798 B
YAML
41 lines
798 B
YAML
|
name: webrepl
|
||
|
on: [push]
|
||
|
#on:
|
||
|
# push:
|
||
|
# branches:
|
||
|
# - main
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: docker
|
||
|
|
||
|
container:
|
||
|
image: rust:1.83-alpine
|
||
|
|
||
|
steps:
|
||
|
- name: Install dependencies
|
||
|
run: apk add --no-cache git nodejs util-linux
|
||
|
|
||
|
- name: Install wasm-pack
|
||
|
run: cargo install wasm-pack
|
||
|
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Build talc-web
|
||
|
run: wasm-pack build --release --no-typescript --no-pack --target web
|
||
|
working-directory: talc-web
|
||
|
|
||
|
- name: Save artifacts
|
||
|
uses: forgejo/upload-artifact@v4
|
||
|
with:
|
||
|
name: webrepl
|
||
|
path: |
|
||
|
*.html
|
||
|
*.js
|
||
|
*.css
|
||
|
pkg/
|
||
|
if-no-files-found: error
|
||
|
|
||
|
- name: Done
|
||
|
run: echo done!
|