Skip to content

Commit

Permalink
ci: skip building aw-server-rust if cargo is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 5, 2022
1 parent 122613b commit e2b6aa7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ build:
make --directory=aw-watcher-window build
make --directory=aw-server build SKIP_WEBUI=$(SKIP_WEBUI)
ifndef SKIP_SERVER_RUST # Skip building aw-server-rust if SKIP_SERVER_RUST is defined
make --directory=aw-server-rust build SKIP_WEBUI=$(SKIP_WEBUI)
echo 'Looking for rust...'
if (which cargo); then \
echo 'Rust found!'; \
make --directory=aw-server-rust build SKIP_WEBUI=$(SKIP_WEBUI); \
else \
echo 'Rust not found, skipping aw-server-rust!'; \
fi
endif
make --directory=aw-qt build
# The below is needed due to: https://github.com/ActivityWatch/activitywatch/issues/173
Expand Down

0 comments on commit e2b6aa7

Please sign in to comment.