Skip to content

Commit

Permalink
[#54869] Add build, test and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
GPlaczek committed Feb 12, 2024
1 parent 9ea9c75 commit c456acc
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build jswasi

on:
push:
branches:
- '**'
- '!main'
pull_request:
workflow_call:

jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: Install dependencies
run: apt-get -qqy update && apt-get -qqy install node-typescript make gettext-base npm wget
- name: Checkout sources
uses: actions/checkout@v4
- name: Build jswasi
run: make standalone
- name: Test jswasi
run: make test
- name: Upload dist
uses: actions/upload-artifact@v3
with:
name: jswasi
path: ./dist/
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: deploy demo

on:
push:
branches:
- '**'

jobs:
build:
name: Build jswasi
uses: ./.github/workflows/build.yml
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download jswasi artifact
uses: actions/download-artifact@v3
with:
name: jswasi
path: ./dist
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./dist

0 comments on commit c456acc

Please sign in to comment.