Skip to content

Commit

Permalink
disable xz by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Oct 18, 2023
1 parent 814a09d commit e33e3cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: make os NC=1

- name: Making image
run: make image
run: make image IMAGE_XZ=1

- name: Uploading image
run: make upload
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ WEBUI_ADMIN_PASSWD ?= admin
IPMI_ADMIN_PASSWD ?= admin

export CARD ?= /dev/null
export IMAGE_XZ ?=

DEPLOY_USER ?= root

Expand Down Expand Up @@ -85,10 +86,11 @@ install: $(_BUILDER_DIR)
image: $(_BUILDER_DIR)
$(eval _dated := $(PLATFORM)-$(BOARD)$(SUFFIX)-$(shell date +%Y%m%d).img)
$(eval _latest := $(PLATFORM)-$(BOARD)$(SUFFIX)-latest.img)
$(eval _suffix = $(if $(call optbool,$(IMAGE_XZ)),.xz,))
mkdir -p images
$(MAKE) -C $(_BUILDER_DIR) image IMAGE=$(shell pwd)/images/$(_dated) IMAGE_XZ=1
cd images && ln -sf $(_dated).xz $(_latest).xz
cd images && ln -sf $(_dated).xz.sha1 $(_latest).xz.sha1
$(MAKE) -C $(_BUILDER_DIR) image IMAGE=$(shell pwd)/images/$(_dated)
cd images && ln -sf $(_dated)$(_suffix) $(_latest)$(_suffix)
cd images && ln -sf $(_dated)$(_suffix).sha1 $(_latest)$(_suffix).sha1


scan: $(_BUILDER_DIR)
Expand Down

0 comments on commit e33e3cd

Please sign in to comment.