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 17924a6
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,13 @@ 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
- name: Build
run: cargo build --verbose
Expand All @@ -23,3 +28,12 @@ jobs:

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

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

0 comments on commit 17924a6

Please sign in to comment.