Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS#81 - Fixed scripts not failing the build #28

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
targets: x86_64-unknown-linux-gnu
- name: run format
run: ./scripts/check_fmt.sh
shell: bash

clippy:
name: Clippy
Expand All @@ -36,6 +37,7 @@ jobs:
targets: x86_64-unknown-linux-gnu
- name: check code
run: ./scripts/check_code.sh
shell: bash

build:
name: Build
Expand Down Expand Up @@ -67,6 +69,7 @@ jobs:
targets: thumbv7em-none-eabihf, x86_64-unknown-linux-gnu
- name: run tests
run: ./scripts/run_tests.sh
shell: bash

examples:
name: Build examples
Expand All @@ -79,6 +82,7 @@ jobs:
targets: thumbv7em-none-eabihf, x86_64-unknown-linux-gnu
- name: build examples
run: ./scripts/build_examples.sh
shell: bash

docs:
name: Generate docs
Expand All @@ -91,3 +95,4 @@ jobs:
targets: thumbv7em-none-eabihf
- name: generate docs
run: ./scripts/generate_docs.sh
shell: bash
2 changes: 2 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

aerugo_x86_debug() {
cargo build --features=use-aerugo-x86 --target=x86_64-unknown-linux-gnu --package aerugo
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/build_examples.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

if [ $# -eq 0 ]
then
for d in examples/*/; do
Expand Down
2 changes: 2 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

aerugo_x86() {
export AERUGO_TASKLET_COUNT=3

Expand Down