Skip to content

Commit

Permalink
Debug github workflow (#8)
Browse files Browse the repository at this point in the history
* Debug github workflow, now it's working
  • Loading branch information
3DRX authored Nov 29, 2024
1 parent dceea2f commit 7d11f06
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 37 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ jobs:
- name: Source ROS
run: |
source /opt/ros/humble/setup.bash
- name: Install Go dependencies
run: go mod download

- name: Run tests
run: make test
shell: bash
run: |
source /opt/ros/humble/setup.bash
make test
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ webrtc-ros-bridge-client: receiver/peer_connection_channel/libvp8decoder.so rclg
receiver/peer_connection_channel/libvp8decoder.so: receiver/peer_connection_channel/vp8_decoder.c receiver/peer_connection_channel/vp8_decoder.h
cd receiver/peer_connection_channel && gcc -shared -o libvp8decoder.so -fPIC vp8_decoder.c $(pkg-config --cflags --libs vpx) $(CFLAGS) $(LDFLAGS)

receiver/ros_channel/msgs cgo-flags.env: scripts/filter-root-path.sh
go run github.com/tiiuae/rclgo/cmd/rclgo-gen generate -d rclgo_gen --root-path=$(shell ./scripts/filter-root-path.sh)
receiver/ros_channel/msgs cgo-flags.env:
go run github.com/tiiuae/rclgo/cmd/rclgo-gen generate -d rclgo_gen

test: receiver/peer_connection_channel/libvp8decoder.so rclgo_gen cgo-flags.env
test: rclgo_gen cgo-flags.env
CGO_CFLAGS=$(CGO_CFLAGS) CGO_LDFLAGS=$(CGO_LDFLAGS) go test `go list ./... | grep -v "/rclgo_gen"`

clean:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# webrtc-ros-bridge

![Tests](https://github.com/{owner}/{repo}/actions/workflows/test.yml/badge.svg)
![Tests](https://github.com/3DRX/webrtc-ros-bridge/actions/workflows/test.yml/badge.svg)

## Prerequisites

Expand Down
31 changes: 0 additions & 31 deletions scripts/filter-root-path.sh

This file was deleted.

0 comments on commit 7d11f06

Please sign in to comment.