Skip to content

landing + playground: go-ndarray v0.16.0 (float32 sum blocks on ppc64le) #41

landing + playground: go-ndarray v0.16.0 (float32 sum blocks on ppc64le)

landing + playground: go-ndarray v0.16.0 (float32 sum blocks on ppc64le) #41

Workflow file for this run

name: ci
on:
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: the site builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.168.0"
extended: true
- run: hugo --minify
# A page that builds and says nothing is a page nobody notices is empty.
- name: every repository is on it
run: |
for repo in ndarray docs brand; do
grep -q "go-ndarray/$repo" public/index.html \
|| { echo "::error::$repo is not on the page"; exit 1; }
done
echo "the page names every repository this org has"
- name: the playground page is built and linked
run: |
test -f public/playground/index.html || { echo "::error::no /playground/ page"; exit 1; }
grep -q 'id=nd-canvas' public/playground/index.html || { echo "::error::the playground page has no canvas"; exit 1; }
grep -qE 'href="?/playground/"?' public/index.html || { echo "::error::the landing does not link to the playground"; exit 1; }
echo "the playground page is built, and the landing links to it"