mirror of
https://github.com/SmartHoneybee/ubiquitous-memory
synced 2025-10-25 15:53:48 +02:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3aa038f93 | ||
|
|
ce52eca004 | ||
|
|
06ac371c53 | ||
|
|
a55b21d6e7 | ||
|
|
ca9c6e47c5 | ||
|
|
89f37ddd12 | ||
|
|
a5c6a921e2 | ||
|
|
02f1846b2b | ||
|
|
362f5cf97f | ||
|
|
4b09124333 | ||
|
|
7332922733 | ||
|
|
605dd4992e | ||
|
|
f58b2018c4 | ||
|
|
f1204f044c | ||
|
|
43a100f30c |
70
.github/workflows/release.yml
vendored
70
.github/workflows/release.yml
vendored
@@ -9,74 +9,46 @@ env:
|
|||||||
DEBIAN_RELEASE: buster
|
DEBIAN_RELEASE: buster
|
||||||
DOCKER_PWD: /root
|
DOCKER_PWD: /root
|
||||||
DOCKER_IMAGE: debian:${DEBIAN_RELEASE}
|
DOCKER_IMAGE: debian:${DEBIAN_RELEASE}
|
||||||
GO_VERSION: 1.15.5
|
GO_VERSION: 1.16.7
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [dragonfly, freebsd, linux, netbsd, openbsd]
|
include:
|
||||||
arch: [amd64, arm, arm64, mips, mips64, mips64le, ppc64, ppc64le, s390x ]
|
|
||||||
exclude:
|
|
||||||
- os: dragonfly
|
- os: dragonfly
|
||||||
|
arch: amd64
|
||||||
|
- os: freebsd
|
||||||
|
arch: amd64
|
||||||
|
- os: freebsd
|
||||||
arch: arm
|
arch: arm
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
|
arch: arm
|
||||||
|
- os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
arch: mips
|
arch: mips
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
arch: mips64
|
arch: mips64
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
arch: mips64le
|
arch: mips64le
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
|
arch: mipsle
|
||||||
|
- os: linux
|
||||||
arch: ppc64
|
arch: ppc64
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
- os: dragonfly
|
- os: linux
|
||||||
arch: s390x
|
|
||||||
- os: freebsd
|
|
||||||
arch: arm64
|
|
||||||
- os: freebsd
|
|
||||||
arch: mips
|
|
||||||
- os: freebsd
|
|
||||||
arch: mips64
|
|
||||||
- os: freebsd
|
|
||||||
arch: mips64le
|
|
||||||
- os: freebsd
|
|
||||||
arch: ppc64
|
|
||||||
- os: freebsd
|
|
||||||
arch: ppc64le
|
|
||||||
- os: freebsd
|
|
||||||
arch: s390x
|
arch: s390x
|
||||||
- os: netbsd
|
- os: netbsd
|
||||||
arch: arm64
|
arch: amd64
|
||||||
- os: netbsd
|
- os: netbsd
|
||||||
arch: mips
|
arch: arm
|
||||||
- os: netbsd
|
|
||||||
arch: mips64
|
|
||||||
- os: netbsd
|
|
||||||
arch: mips64le
|
|
||||||
- os: netbsd
|
|
||||||
arch: ppc64
|
|
||||||
- os: netbsd
|
|
||||||
arch: ppc64le
|
|
||||||
- os: netbsd
|
|
||||||
arch: s390x
|
|
||||||
- os: openbsd
|
- os: openbsd
|
||||||
arch: arm64
|
arch: amd64
|
||||||
- os: openbsd
|
- os: openbsd
|
||||||
arch: mips
|
arch: arm
|
||||||
- os: openbsd
|
|
||||||
arch: mips64
|
|
||||||
- os: openbsd
|
|
||||||
arch: mips64le
|
|
||||||
- os: openbsd
|
|
||||||
arch: ppc64
|
|
||||||
- os: openbsd
|
|
||||||
arch: ppc64le
|
|
||||||
- os: openbsd
|
|
||||||
arch: s390x
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
|
|||||||
@@ -1,40 +1,22 @@
|
|||||||
diff --git a/build/release.mk b/build/release.mk
|
diff --git a/build/release.mk b/build/release.mk
|
||||||
index 3e9a11339..c8bd5409f 100644
|
index 7f989d4b4..886119275 100644
|
||||||
--- a/build/release.mk
|
--- a/build/release.mk
|
||||||
+++ b/build/release.mk
|
+++ b/build/release.mk
|
||||||
@@ -97,7 +97,7 @@ package:
|
@@ -71,7 +71,7 @@ package-prep:
|
||||||
cp -RL $(BUILD_WEBAPP_DIR)/dist/* $(DIST_PATH)/client
|
@# Resource directories
|
||||||
|
mkdir -p $(DIST_PATH)/config
|
||||||
@#Download MMCTL
|
cp -L config/README.md $(DIST_PATH)/config
|
||||||
- scripts/download_mmctl_release.sh "" $(DIST_PATH)/bin
|
- OUTPUT_CONFIG=$(PWD)/$(DIST_PATH)/config/config.json go run ./scripts/config_generator
|
||||||
+ #scripts/download_mmctl_release.sh "" $(DIST_PATH)/bin
|
+ OUTPUT_CONFIG=$(PWD)/$(DIST_PATH)/config/config.json GOOS= GOARCH= go run ./scripts/config_generator
|
||||||
|
cp -RL fonts $(DIST_PATH)
|
||||||
@# Help files
|
cp -RL templates $(DIST_PATH)
|
||||||
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
rm -rf $(DIST_PATH)/templates/*.mjml $(DIST_PATH)/templates/partials/
|
||||||
@@ -126,7 +126,7 @@ endif
|
@@ -201,7 +201,7 @@ else
|
||||||
|
cp $(GOBIN)/linux_amd64/mattermost $(DIST_PATH_LIN)/bin # from cross-compiled bin dir
|
||||||
|
|
||||||
@# ----- PLATFORM SPECIFIC -----
|
|
||||||
-
|
|
||||||
+_:
|
|
||||||
@# Make osx package
|
|
||||||
@# Copy binary
|
|
||||||
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
|
|
||||||
@@ -196,7 +196,7 @@ endif
|
|
||||||
rm -f $(DIST_PATH)/bin/platform.exe
|
|
||||||
rm -f $(DIST_PATH)/bin/mmctl.exe
|
|
||||||
rm -f $(DIST_PATH)/prepackaged_plugins/*
|
|
||||||
-
|
|
||||||
+package-linux: package
|
|
||||||
@# Make linux package
|
|
||||||
@# Copy binary
|
|
||||||
ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
|
|
||||||
@@ -207,7 +207,7 @@ else
|
|
||||||
cp $(GOBIN)/linux_amd64/platform $(DIST_PATH)/bin # from cross-compiled bin dir
|
|
||||||
endif
|
endif
|
||||||
#Download MMCTL for Linux
|
#Download MMCTL for Linux
|
||||||
- scripts/download_mmctl_release.sh "Linux" $(DIST_PATH)/bin
|
- scripts/download_mmctl_release.sh "Linux" $(DIST_PATH_LIN)/bin
|
||||||
+ #scripts/download_mmctl_release.sh "Linux" $(DIST_PATH)/bin
|
+ #scripts/download_mmctl_release.sh "Linux" $(DIST_PATH_LIN)/bin
|
||||||
@# Prepackage plugins
|
@# Prepackage plugins
|
||||||
@for plugin_package in $(PLUGIN_PACKAGES) ; do \
|
@for plugin_package in $(PLUGIN_PACKAGES) ; do \
|
||||||
ARCH="linux-amd64"; \
|
ARCH="linux-amd64"; \
|
||||||
|
|||||||
15
build.sh
15
build.sh
@@ -11,7 +11,7 @@ MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.4.0}"
|
|||||||
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
|
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
|
||||||
NODE_RELEASE="${NODE_RELEASE:-10}"
|
NODE_RELEASE="${NODE_RELEASE:-10}"
|
||||||
# golang version
|
# golang version
|
||||||
GO_VERSION="${GO_VERSION:-1.15.5}"
|
GO_VERSION="${GO_VERSION:-1.16.7}"
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then # as root user
|
if [ "$(id -u)" -eq 0 ]; then # as root user
|
||||||
# create build user, if needed
|
# create build user, if needed
|
||||||
@@ -33,9 +33,9 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
|
|||||||
apt-get update
|
apt-get update
|
||||||
# dependencies to setup repositories
|
# dependencies to setup repositories
|
||||||
apt-get install --quiet \
|
apt-get install --quiet \
|
||||||
gnupg2 dirmngr apt-transport-https ca-certificates parallel
|
gnupg2 dirmngr apt-transport-https ca-certificates curl
|
||||||
# receive missing key (retry on failure)
|
# receive missing key
|
||||||
parallel --verbose --delay=30 --retries=5 "apt-key adv --keyserver 'ipv4.pool.sks-keyservers.net' --recv-keys '{}'" ::: "${NODE_KEY}"
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
|
||||||
# add required additional repositories
|
# add required additional repositories
|
||||||
printf 'deb-src http://deb.debian.org/debian %s main' "${DEBIAN_RELEASE}" \
|
printf 'deb-src http://deb.debian.org/debian %s main' "${DEBIAN_RELEASE}" \
|
||||||
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-source.list"
|
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-source.list"
|
||||||
@@ -103,7 +103,12 @@ sed -i \
|
|||||||
"${HOME}/go/src/github.com/mattermost/mattermost-server/Makefile" \
|
"${HOME}/go/src/github.com/mattermost/mattermost-server/Makefile" \
|
||||||
"${HOME}/go/src/github.com/mattermost/mattermost-server/build/release.mk"
|
"${HOME}/go/src/github.com/mattermost/mattermost-server/build/release.mk"
|
||||||
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
|
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
|
||||||
config-reset build-linux package-linux \
|
config-reset \
|
||||||
|
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MATTERMOST_RELEASE}" \
|
||||||
|
GO="GOARCH= GOOS= $(command -v go)" \
|
||||||
|
PLUGIN_PACKAGES=''
|
||||||
|
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
|
||||||
|
build-linux package-linux \
|
||||||
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MATTERMOST_RELEASE}" \
|
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MATTERMOST_RELEASE}" \
|
||||||
GO="GOARCH=$(go env GOARCH) GOOS=$(go env GOOS) $(command -v go)" \
|
GO="GOARCH=$(go env GOARCH) GOOS=$(go env GOOS) $(command -v go)" \
|
||||||
PLUGIN_PACKAGES=''
|
PLUGIN_PACKAGES=''
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
package main
|
package main
|
||||||
import _ "github.com/mattermost/mattermost-server/model"
|
|
||||||
func main() {/* dummy file */}
|
import _ "github.com/mattermost/mattermost-server/v6/model"
|
||||||
|
|
||||||
|
func main() { /* dummy file */ }
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
|
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
|
||||||
|
|
||||||
require github.com/mattermost/mattermost-server/v5 v5.35.3
|
go 1.16
|
||||||
|
|
||||||
|
require github.com/mattermost/mattermost-server/v6 v6.0.2
|
||||||
|
|||||||
Reference in New Issue
Block a user