From fab8192728f3e9afed0d86d6aa50618f1dbe7395 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Fri, 3 Nov 2023 09:52:21 +0000 Subject: [PATCH] Add GHA to build shiny webR image --- .github/workflows/build-webr-image.yaml | 20 ++++++++++++++++++++ .github/workflows/build-webr-packages | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/build-webr-image.yaml create mode 100644 .github/workflows/build-webr-packages diff --git a/.github/workflows/build-webr-image.yaml b/.github/workflows/build-webr-image.yaml new file mode 100644 index 0000000000..a8aba41604 --- /dev/null +++ b/.github/workflows/build-webr-image.yaml @@ -0,0 +1,20 @@ +on: + push: + branches: [webr, webr-safari] + pull_request: + branches: [webr, webr-safari] + workflow_dispatch: + +name: Build wasm R package repository + +jobs: + build: + runs-on: ubuntu-latest + container: ghcr.io/r-wasm/webr:main + steps: + - uses: actions/checkout@v3 + - name: Build wasm packages + uses: r-wasm/actions/build-wasm-packages@v0.0.3 + with: + packages: .github/workflows/build-webr-packages + strip: c("demo", "doc", "examples", "help", "html", "include", "tests", "testthat", "vignette") diff --git a/.github/workflows/build-webr-packages b/.github/workflows/build-webr-packages new file mode 100644 index 0000000000..87bfbe376b --- /dev/null +++ b/.github/workflows/build-webr-packages @@ -0,0 +1,4 @@ +httpuv +codetools +renv +shiny