Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ name: 📦 Build & Test Docker Image

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master" ]
tags: [ 'v*.*.*' ]
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master" ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/invariants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,21 @@ name: 🔬 Model Invariants (Linux)

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches:
- "master"
- "dev"
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master", "dev" ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
invariants:
name: Dead fuel moisture invariants
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ name: 🧪 Test Native (macOS)

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches:
- brew
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master", "dev" ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
build-native-macos:
runs-on: macos-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: 🧪 Test Native (Linux)

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches:
- "master"
- "dev"
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master", "dev" ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
build-native:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ name: 🧼 Sanitizers (Linux)

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches:
- "master"
- "dev"
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master", "dev" ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
address-sanitizer:
name: AddressSanitizer
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/wasm-pages.yml

This file was deleted.

53 changes: 51 additions & 2 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
name: 🌐 Build WASM

# Builds the WebAssembly module (issue #171) and runs the Node smoke test. The
# .wasm is built here rather than committed: it is a megabyte of generated
# Builds the WebAssembly module (issue #171) and runs the Node smoke test. On
# dev it also publishes the browser demo to GitHub Pages, from the same build.
# The .wasm is built here rather than committed: it is a megabyte of generated
# output, and a stale binary next to live sources is worse than a two minute
# build.
#
# The github-pages environment has to allow dev as a deployment branch
# (Settings → Environments → github-pages).

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches:
- "master"
- "dev"
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master", "dev" ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

Expand Down Expand Up @@ -63,3 +75,40 @@ jobs:

- name: Smoke test under Node
run: node bindings/wasm/smoke.mjs bin/forefire.mjs

# The demo is published from dev only.
- name: Assemble the site
if: github.ref == 'refs/heads/dev' && github.event_name != 'pull_request'
run: |
mkdir -p _site
cp bin/forefire.mjs bin/forefire.wasm _site/
cp bindings/wasm/index.html bindings/wasm/worker.mjs \
bindings/wasm/landscape.mjs bindings/wasm/terrain3d.mjs _site/
# Pages serves through Jekyll unless told otherwise, which would
# swallow files it does not recognise.
touch _site/.nojekyll

- name: Upload artifact
if: github.ref == 'refs/heads/dev' && github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: _site

deploy:
needs: build-wasm
if: github.ref == 'refs/heads/dev' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
# One deployment at a time; queued runs supersede rather than race.
concurrency:
group: pages
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 6 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@ name: 🐍 Build Python wheels

on:
push:
paths-ignore: [ "docs/**", "**/*.md" ]
branches:
- "master"
tags:
- "v*"
pull_request:
paths-ignore: [ "docs/**", "**/*.md" ]
branches: [ "master" ]
release:
types: [ published ]
workflow_dispatch:

# A new push to a PR cancels its older run. Pushes to branches, tags and
# releases each get their own group, so none is ever queued or dropped.
concurrency:
group: wheels-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
build-wheels:
Expand Down
Loading