]> git.r.bdr.sh - rbdr/blog/commitdiff
Run the make in the app
authorRuben Beltran del Rio <redacted>
Tue, 12 Mar 2024 06:57:31 +0000 (07:57 +0100)
committerRuben Beltran del Rio <redacted>
Tue, 12 Mar 2024 06:57:31 +0000 (07:57 +0100)
Makefile

index 7fcb69280616a54109061a359601bf4b2731030a..0a4d393e8b44e261ef8b617dff425de8c02a2680 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,14 +28,9 @@ package: $(architectures)
 
 ci:
 ifeq ($(GIT_REF),refs/heads/main)
 
 ci:
 ifeq ($(GIT_REF),refs/heads/main)
-       @$(eval channel=unstable)
+       $(MAKE) -e profile=release -e channel=unstable package
 else ifneq (,$(findstring refs/tags/,$(GIT_REF)))
 else ifneq (,$(findstring refs/tags/,$(GIT_REF)))
-       @$(eval channel=$(subst refs/tags/,,$(GIT_REF)))
-endif
-ifneq ($(channel),)
-       $(MAKE) -e profile=release -e channel=$(channel) package
-else
-       @echo "Channel was $(channel)"
+       $(MAKE) -e profile=release -e channel=$(subst refs/tags/,,$(GIT_REF)) package
 endif
 
 .PHONY: default build $(architectures) rpm package prepare set_rust ci release
 endif
 
 .PHONY: default build $(architectures) rpm package prepare set_rust ci release