Skip to content

Commit

Permalink
feat(ci): Add ci for running examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangjuX committed May 15, 2024
1 parent d3806a6 commit 49c3f16
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
toolchain: ${{ matrix.rust-toolchain }}
components: rust-src
override: true
- name: Build
- name: Build the project
run: cargo build

22 changes: 22 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build CI

on: [push, pull_request]

jobs:
examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain: [stable]
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rust-src
override: true
- name: Run examples
run: ./scripts/run_examples.sh

0 comments on commit 49c3f16

Please sign in to comment.