Skip to content

Commit

Permalink
Merge pull request #7 from lecopivo/examples-ci
Browse files Browse the repository at this point in the history
Have CI run working examples. This ensures that our changes keep the examples working.
  • Loading branch information
bollu authored Aug 20, 2023
2 parents c80607b + c2c21ce commit 5919f10
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
push:
branches: ["master"]

# Runs on PRs against master.
pull_request:
branches:
- master


# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -20,7 +26,6 @@ concurrency:
cancel-in-progress: true

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -36,6 +41,8 @@ jobs:
run: lake exe cache get
- name: Build SciLean
run: lake build
- name: Run Examples
run: make examples
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
Expand All @@ -46,6 +53,9 @@ jobs:

# Single deploy job since we're just deploying
deploy:
# only build on `master` branch of the actual remote, NOT on PRs.
# this stops PRs from attempting to deploy GH pages and failing to do so.
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.PHONY: examples

examples:
lake build SurfaceMeshTests
./build/bin/SurfaceMeshTests

0 comments on commit 5919f10

Please sign in to comment.