Skip to content

Workflow file for this run

---
name: WASM
on:
workflow_call:
secrets:
REPO_GITHUB_TOKEN:
description: |
Github token with write access to the repository
required: false
inputs:
package-subdirectory:
description: Subdirectory in the repository, where the R package is located.
required: false
type: string
default: ""
jobs:
wasm:
runs-on: ubuntu-latest
steps:
- name: Get branch names 🌿
id: branch-name

Check failure on line 23 in .github/workflows/wasm.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/wasm.yaml

Invalid workflow file

You have an error in your yaml syntax on line 23
uses: tj-actions/branch-names@v7
- name: Checkout repo 🛎
uses: actions/[email protected]
with:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
path: ${{ github.event.repository.name }}
- name: Get package name 📦
run: |
echo "PKGNAME=$(echo $(awk -F: '/Package:/{gsub(/[ ]+/,"") ; print $2}' DESCRIPTION))" >> $GITHUB_ENV
shell: bash
working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
- name: Debug
id: current-tag
run: |
echo "Building WASM for: ${{ github.repository_owner }}/${{ env.PKGNAME }}@${{ steps.branch-name.outputs.tag }}"
shell: bash
- name: Build wasm packages
uses: r-wasm/actions/build-rwasm@v1
with:
packages: |
${{ github.repository_owner }}/${{ env.PKGNAME }}@${{ steps.branch-name.outputs.tag }}
- name: Debug
run: |
apt-get update && apt-get install -yq tree
ls -la
tree _site
cat _site/bin/emscripten/contrib/4.4/PACKAGES