Skip to content

Commit

Permalink
implement toolchain caching for fast dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvick committed Oct 18, 2023
1 parent 8864bb1 commit 1477b1c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
fetch/apt/*.deb filter=lfs diff=lfs merge=lfs -text
fetch/apt/*.bz2 filter=lfs diff=lfs merge=lfs -text
cache/toolchain.tgz filter=lfs diff=lfs merge=lfs -text
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LOCAL_BUILD_DIR := 'build'
.DEFAULT_GOAL :=
.PHONY: default
default: \
cache \
toolchain \
$(patsubst %,$(KEY_DIR)/%.asc,$(KEYS)) \
$(OUT_DIR)/ecr-proxy.linux-x86_64 \
Expand All @@ -26,6 +27,14 @@ lint:
env -C $(SRC_DIR) go vet -v ./... \
')

.PHONY: cache
cache:
ifneq ($(TOOLCHAIN_REPRODUCE),true)
git lfs pull --include=cache/toolchain.tgz
touch cache/toolchain.tgz
$(MAKE) toolchain-restore-mtime
endif

.PHONY: test
test: $(OUT_DIR)/ecr-proxy.linux-x86_64
$(call toolchain,' \
Expand Down
3 changes: 3 additions & 0 deletions cache/toolchain.tgz
Git LFS file not shown

0 comments on commit 1477b1c

Please sign in to comment.