waforth/.github/workflows/build.yml

30 lines
764 B
YAML
Raw Normal View History

2022-04-13 17:02:46 +02:00
name: Build
on:
push:
2023-03-18 09:30:15 +01:00
branches: ['*', '!master']
pull_request:
2022-04-13 17:02:46 +02:00
workflow_dispatch:
2022-05-07 09:03:03 +02:00
workflow_call:
2022-04-13 17:02:46 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-03-18 09:30:15 +01:00
- uses: actions/checkout@v3
2022-05-07 09:03:03 +02:00
- uses: ./.github/actions/setup
2022-04-13 17:02:46 +02:00
- run: yarnpkg build
- run: yarnpkg lint
- run: yarnpkg test --coverage
2023-03-18 09:30:15 +01:00
- run: make -C src/web/notebook
- run: ./dist/wafnb2html src/web/notebook/examples/drawing-with-forth.wafnb
# Build & upload pages
- run: |
mkdir -p public/waforth/drawing-with-forth
cp src/web/notebook/examples/drawing-with-forth.html public/waforth/drawing-with-forth/index.html
shell: bash
- uses: actions/upload-pages-artifact@v1
with:
path: public/waforth