Skip to content
Closed
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
37 changes: 37 additions & 0 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run examples

on:
push:
branches: main
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ixa-build-${{ github.run_id }}
path: .

run_examples:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [basic-infection, births-deaths, load-people, network-hhmodel, parameter-loading, random, reports, reports-multi-threaded, runner, time-varying-infection]
steps:
- name: Download the artifact
uses: actions/download-artifact@v4
with:
name: ixa-build-${{ github.run_id }}
- name: Run the example
run: cargo run --example ${{ matrix.example }}
Loading