Skip to content

Commit 02a4abb

Browse files
committed
chore(build): Bring VCS versioning scheme to makefile automation
1 parent 4661a39 commit 02a4abb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/busted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: leafo/gh-actions-luarocks@v3
2323
- name: Setup dependencies
2424
run: |
25-
luarocks install --only-deps fluent-scm-0.rockspec
25+
luarocks install --only-deps fluent-dev-0.rockspec
2626
luarocks install busted
2727
luarocks install dkjson
2828
luarocks install luafilesystem

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ TAG = v$(SEMVER)
2020

2121
LUAROCKS_ARGS ?= --local --tree lua_modules
2222

23-
SCM_ROCK = $(PACKAGE)-scm-0.rockspec
23+
SCM_ROCK = $(PACKAGE)-dev-0.rockspec
2424
REL_ROCK = rockspecs/$(PACKAGE)-$(SEMVER)-$(ROCKREV).rockspec
25-
SCM_SRC = $(PACKAGE)-scm-0.src.rock
25+
SCM_SRC = $(PACKAGE)-dev-0.src.rock
2626
REL_SRC = $(PACKAGE)-$(SEMVER)-$(ROCKREV).src.rock
2727

2828
.PHONY: all
@@ -42,7 +42,7 @@ define rockpec_template =
4242
$< > $@
4343
endef
4444

45-
$(SCM_ROCK): SEMVER = scm
45+
$(SCM_ROCK): SEMVER = dev
4646
$(SCM_ROCK): TAG = master
4747
$(SCM_ROCK): $(PACKAGE).rockspec.in
4848
$(rockpec_template)
@@ -52,7 +52,7 @@ rockspecs/$(PACKAGE)-%-0.rockspec: TAG = v$*
5252
rockspecs/$(PACKAGE)-%-0.rockspec: $(PACKAGE).rockspec.in
5353
$(rockpec_template)
5454

55-
$(PACKAGE)-scm-0.src.rock: $(SCM_ROCK)
55+
$(PACKAGE)-dev-0.src.rock: $(SCM_ROCK)
5656
luarocks $(LUAROCKS_ARGS) pack $<
5757

5858
$(PACKAGE)-%.src.rock: rockspecs/$(PACKAGE)-%.rockspec

0 commit comments

Comments
 (0)