Skip to content

Commit

Permalink
feat: Add dedicated TensorFlow Lite library download target for Linux…
Browse files Browse the repository at this point in the history
… AMD64

- Create new Makefile target `download-tflite-linux-amd64` for Linux AMD64 library
- Update GitHub Actions workflow to use Linux-specific TensorFlow Lite library download
- Simplify library download process for Linux CI testing environment
  • Loading branch information
tphakala committed Feb 27, 2025
1 parent a37cabe commit c47bf3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: make check-tensorflow

- name: Download tflite_c
run: make download-tflite
run: make download-tflite-linux-amd64

- name: Set environment variables for CGO
run: |
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ download-tflite:
fi
$(call ensure_tflite_symlinks,$(TFLITE_LIB_DIR),$(call get_lib_filename,$(TARGET)))

# Download tflite_c library for linux_amd64
download-tflite-linux-amd64:
wget -q https://github.com/tphakala/tflite_c/releases/download/$(TFLITE_VERSION)/tflite_c_linux_amd64.tar.gz -P ./
tar -xzf tflite_c_linux_amd64.tar.gz -C .
sudo mv libtensorflowlite_c.so $(TFLITE_LIB_DIR)/
rm -f tflite_c_linux_amd64.tar.gz

# Download assets
download-assets:
@echo "Downloading latest versions of Leaflet, htmx, Alpine.js, and Tailwind CSS"
Expand Down

0 comments on commit c47bf3d

Please sign in to comment.