mirror of
https://github.com/DS-Homebrew/flashcard-archive.git
synced 2024-12-29 11:31:50 +01:00
5fa351a3a0
https://github.com/timo-reymann/deterministic-zip This solves a logistics issue; zip files always include the modified timestamp of a file. This doesn't sound bad until you realize that GitHub Actions always re-clones the entire repository, and the timestamp is guaranteed to be different. Because of this, every time we run our Actions workflow, the zip will have a different checksum, causing git to re-commit *every single file* to the frontend repository, causing long workflow times due to the sheer size of each commit. deterministic-zip hopefully solves this issue by forcing the modified timestamp to one hardcoded in its binary, so here is to hoping we don't abuse our git repo any further.
27 lines
924 B
Makefile
27 lines
924 B
Makefile
.PHONY: package
|
|
|
|
export TOPDIR := $(shell pwd $(CURDIR))
|
|
export BASE := EZ-Flash/$(shell basename $(CURDIR))
|
|
export OUT := $(TOPDIR)/../../../out
|
|
export COMMON := $(TOPDIR)/../../../common-kernels
|
|
|
|
package: directory EZ-Flash_V_Kernel_1.80.zip EZ-Flash_V_Kernel_1.82.zip EZ-Flash_V_Kernel_1.83.zip EZ-Flash_V_Kernel_1.84.zip EZ-Flash_V_Kernel_1.86.zip
|
|
|
|
directory:
|
|
mkdir -p $(OUT)/$(BASE)
|
|
|
|
EZ-Flash_V_Kernel_1.80.zip: directory
|
|
cd $(TOPDIR)/EZ-Flash_V_Kernel_1.80 && zip -r $(OUT)/$(BASE)/$@ *
|
|
|
|
EZ-Flash_V_Kernel_1.82.zip: directory
|
|
cd $(TOPDIR)/EZ-Flash_V_Kernel_1.82 && zip -r $(OUT)/$(BASE)/$@ *
|
|
|
|
EZ-Flash_V_Kernel_1.83.zip: directory
|
|
cd $(TOPDIR)/EZ-Flash_V_Kernel_1.83 && zip -r $(OUT)/$(BASE)/$@ *
|
|
|
|
EZ-Flash_V_Kernel_1.84.zip: directory
|
|
cd $(TOPDIR)/EZ-Flash_V_Kernel_1.84 && zip -r $(OUT)/$(BASE)/$@ *
|
|
|
|
EZ-Flash_V_Kernel_1.86.zip: directory
|
|
cd $(TOPDIR)/EZ-Flash_V_Kernel_1.86 && zip -r $(OUT)/$(BASE)/$@ *
|