build nightly versions
All checks were successful
Build and Package OPKG / Build for aarch64-3.10 (push) Successful in 55s
Build and Package OPKG / Build for armv5-3.2 (push) Successful in 46s
Build and Package OPKG / Build for armv7-2.6 (push) Successful in 44s
Build and Package OPKG / Build for armv7-3.2 (push) Successful in 46s
Build and Package OPKG / Build for mips-3.4 (push) Successful in 46s
Build and Package OPKG / Build for mipsel-3.4 (push) Successful in 48s
All checks were successful
Build and Package OPKG / Build for aarch64-3.10 (push) Successful in 55s
Build and Package OPKG / Build for armv5-3.2 (push) Successful in 46s
Build and Package OPKG / Build for armv7-2.6 (push) Successful in 44s
Build and Package OPKG / Build for armv7-3.2 (push) Successful in 46s
Build and Package OPKG / Build for mips-3.4 (push) Successful in 46s
Build and Package OPKG / Build for mipsel-3.4 (push) Successful in 48s
This commit is contained in:
parent
965b4e6718
commit
7833bc3db4
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -2,8 +2,6 @@ name: Build and Package OPKG
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
14
Makefile
14
Makefile
@ -2,10 +2,14 @@ APP_NAME = magitrickle
|
|||||||
APP_DESCRIPTION = DNS-based routing application
|
APP_DESCRIPTION = DNS-based routing application
|
||||||
APP_MAINTAINER = Vladimir Avtsenov <vladimir.lsk.cool@gmail.com>
|
APP_MAINTAINER = Vladimir Avtsenov <vladimir.lsk.cool@gmail.com>
|
||||||
|
|
||||||
TAG = $(shell git describe --tags --abbrev=0 2> /dev/null || git rev-parse --short HEAD)
|
|
||||||
COMMIT = $(shell git rev-parse --short HEAD)
|
COMMIT = $(shell git rev-parse --short HEAD)
|
||||||
COMMITS_SINCE_TAG = $(shell git rev-list ${TAG}..HEAD --count || echo "0")
|
UPSTREAM_VERSION ?= $(shell git describe --tags --abbrev=0 2> /dev/null || echo $(COMMIT))
|
||||||
VERSION ?= $(TAG)
|
OPKG_REVISION = ~git$(shell date +%Y%m%d).$(COMMIT)-1
|
||||||
|
ifeq ($(shell git rev-parse --abbrev-ref HEAD), main)
|
||||||
|
TAG = $(shell git describe --tags --abbrev=0 2> /dev/null || echo $(COMMIT))
|
||||||
|
COMMITS_SINCE_TAG = $(shell git rev-list ${TAG}..HEAD --count || echo "0")
|
||||||
|
OPKG_REVISION = -$(shell expr $(COMMITS_SINCE_TAG) + 1)
|
||||||
|
endif
|
||||||
|
|
||||||
ARCH ?= mipsel
|
ARCH ?= mipsel
|
||||||
GOOS ?= linux
|
GOOS ?= linux
|
||||||
@ -16,7 +20,7 @@ GOARM ?=
|
|||||||
BUILD_DIR = ./.build
|
BUILD_DIR = ./.build
|
||||||
PKG_DIR = $(BUILD_DIR)/$(ARCH)
|
PKG_DIR = $(BUILD_DIR)/$(ARCH)
|
||||||
BIN_DIR = $(PKG_DIR)/data/opt/bin
|
BIN_DIR = $(PKG_DIR)/data/opt/bin
|
||||||
PARAMS = -v -a -trimpath -ldflags="-X 'magitrickle/constant.Version=$(VERSION)' -X 'magitrickle/constant.Commit=$(COMMIT)' -w -s"
|
PARAMS = -v -a -trimpath -ldflags="-X 'magitrickle/constant.Version=$(UPSTREAM_VERSION)$(OPKG_REVISION)' -X 'magitrickle/constant.Commit=$(COMMIT)' -w -s"
|
||||||
|
|
||||||
all: clear build_daemon package
|
all: clear build_daemon package
|
||||||
|
|
||||||
@ -30,7 +34,7 @@ package:
|
|||||||
@mkdir -p $(PKG_DIR)/control
|
@mkdir -p $(PKG_DIR)/control
|
||||||
@echo '2.0' > $(PKG_DIR)/debian-binary
|
@echo '2.0' > $(PKG_DIR)/debian-binary
|
||||||
@echo 'Package: $(APP_NAME)' > $(PKG_DIR)/control/control
|
@echo 'Package: $(APP_NAME)' > $(PKG_DIR)/control/control
|
||||||
@echo 'Version: $(VERSION)-$(COMMITS_SINCE_TAG)' >> $(PKG_DIR)/control/control
|
@echo 'Version: $(UPSTREAM_VERSION)$(OPKG_REVISION)' >> $(PKG_DIR)/control/control
|
||||||
@echo 'Architecture: $(ARCH)' >> $(PKG_DIR)/control/control
|
@echo 'Architecture: $(ARCH)' >> $(PKG_DIR)/control/control
|
||||||
@echo 'Maintainer: $(APP_MAINTAINER)' >> $(PKG_DIR)/control/control
|
@echo 'Maintainer: $(APP_MAINTAINER)' >> $(PKG_DIR)/control/control
|
||||||
@echo 'Description: $(APP_DESCRIPTION)' >> $(PKG_DIR)/control/control
|
@echo 'Description: $(APP_DESCRIPTION)' >> $(PKG_DIR)/control/control
|
||||||
|
Loading…
x
Reference in New Issue
Block a user