forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added test.sh script * Fixed build with riscv64 * Passed package version via go ldflags * Refreshed patches * Removed useless test binaries from package Signed-off-by: Tianling Shen <[email protected]>
- Loading branch information
1 parent
b53a838
commit 27b4291
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=gitlab-runner | ||
PKG_VERSION:=14.3.2 | ||
PKG_RELEASE:=2 | ||
PKG_VERSION:=16.0.2 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(PKG_VERSION) | ||
PKG_HASH:=f67aeae05349f5c612ea5d8772407237caf4da586c0365e3c7edceec6b853d8c | ||
PKG_HASH:=f874b9babe21ae04007abfc901e9ad4c0c1ec22095d4de3e22e176914683cb5d | ||
|
||
PKG_MAINTAINER:=Jan Pavlinec <[email protected]> | ||
PKG_LICENSE:=MIT | ||
|
@@ -23,7 +23,9 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/gitlab-runner-v$(PKG_VERSION) | |
PKG_BUILD_DEPENDS:=golang/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_BUILD_FLAGS:=no-mips16 | ||
|
||
GO_PKG:=gitlab.com/gitlab-org/gitlab-runner | ||
GO_PKG_LDFLAGS_X:=$(GO_PKG)/common.VERSION=$(PKG_VERSION) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
include ../../lang/golang/golang-package.mk | ||
|
@@ -41,5 +43,12 @@ define Package/gitlab-runner/description | |
GitLab CI/CD to run jobs in a pipeline. | ||
endef | ||
|
||
define Package/gitlab-runner/install | ||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) | ||
$(INSTALL_DIR) $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gitlab-runner $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gitlab-runner-helper $(1)/usr/bin/ | ||
endef | ||
|
||
$(eval $(call GoBinPackage,gitlab-runner)) | ||
$(eval $(call BuildPackage,gitlab-runner)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
gitlab-runner --version | grep "$PKG_VERSION" |