This commit is contained in:
parent
63c708183b
commit
04a4d6d795
@ -21,9 +21,9 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build Docker Image
|
||||
- name: Build Packages
|
||||
run: |
|
||||
make build
|
||||
make all
|
||||
|
||||
- name: Show tree
|
||||
run: |
|
||||
|
||||
7
Makefile
7
Makefile
@ -7,9 +7,12 @@ NFPM_VERSION := 2.41.1
|
||||
PACKAGES := $(shell find $(RPMS_DIR) -mindepth 2 -maxdepth 2 -type d | sed "s|$(RPMS_DIR)/||")
|
||||
|
||||
# Default target to build all packages and versions
|
||||
.PHONY: all
|
||||
.PHONY: all list build buildall clean
|
||||
all: $(PACKAGES)
|
||||
|
||||
list:
|
||||
@echo "$(PACKAGES)"
|
||||
|
||||
# Build specific package/version
|
||||
.PHONY: $(PACKAGES)
|
||||
$(PACKAGES):
|
||||
@ -19,7 +22,6 @@ $(PACKAGES):
|
||||
$(MAKE) build PACKAGE_NAME=$$PACKAGE_NAME PACKAGE_VERSION=$$PACKAGE_VERSION
|
||||
|
||||
# Build target
|
||||
.PHONY: build
|
||||
build:
|
||||
@mkdir -p $(ROOT_DIR)/dist/$(PACKAGE_NAME)/
|
||||
@echo "Preparing to build $(PACKAGE_NAME) version $(PACKAGE_VERSION)"
|
||||
@ -39,7 +41,6 @@ build:
|
||||
docker rm $(PACKAGE_NAME)-$(PACKAGE_VERSION)-builder
|
||||
|
||||
# Clean target
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@echo "Cleaning build artifacts..."
|
||||
rm -rf $(ROOT_DIR)/dist
|
||||
|
||||
Loading…
Reference in New Issue
Block a user