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 38982d7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ 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/export-esp.sh
cargo install espup
espup install
- name: Build
run: cargo build --verbose
Expand All @@ -23,3 +31,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 38982d7

Please sign in to comment.