Skip to content

Commit

Permalink
Build examples in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marti157 committed Jun 9, 2024
1 parent d21d659 commit b212023
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ env:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Rust
run: |
curl -L https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu -o espup
chmod a+x espup && ./espup install
. /home/runner/export-esp.sh
- name: Build
run: cargo build --verbose
Expand All @@ -23,3 +29,11 @@ jobs:

- name: Test documentation generation
run: cargo test && cargo doc

- name: Build examples
if: always()
run: |
for dir in examples/*/; do
echo "Building $dir"
(cd "$dir" && cargo build --release)
done

0 comments on commit b212023

Please sign in to comment.