mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
* remove \r * remove \r * remove \r * remove \r * remove \r * remove \r * remove \r * remove \r * remove \r * remove \r * fix bug: get localIP * update some ci file (#2200) * Update openimci.yml * Update golangci-lint.yml * Update e2e-test.yml * 3.6.1 code conventions (#2202) * refactor: webhooks update. * Adjust configuration settings * Adjust configuration settings * Adjust configuration settings * feat: s3 api addr * refactor: webhooks update. * Adjust configuration settings * Adjust configuration settings * Adjust configuration settings * Adjust configuration settings * Adjust configuration settings * Adjust configuration settings * Adjust configuration settings * refactor: webhooks update. * refactor: kafka update. * Simplify the Docker Compose configuration, remove unnecessary environment variables, and eliminate the gateway service. * refactor: kafka update. * refactor: kafka update. * Simplify the Docker Compose configuration, remove unnecessary environment variables, and eliminate the gateway service. * Simplify the Docker Compose configuration, remove unnecessary environment variables, and eliminate the gateway service. * Windows can compile and run. * Windows can compile and run. * refactor: kafka update. * feat: msg cache split * refactor: webhooks update * refactor: webhooks update * refactor: friends update * refactor: group update * refactor: third update * refactor: api update * refactor: crontab update * refactor: msggateway update * mage * mage * refactor: all module update. * check * refactor: all module update. * load config * load config * load config * load config * refactor: all module update. * refactor: all module update. * refactor: all module update. * refactor: all module update. * refactor: all module update. * Optimize Docker configuration and script. * refactor: all module update. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * refactor: all module update. * Optimize Docker configuration and script. * refactor: all module update. * refactor: all module update. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * update tools * update tools * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * update protocol * Optimize Docker configuration and script. * Optimize Docker configuration and script. * refactor: all module update. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * Optimize Docker configuration and script. * refactor: api remove token auth by redis directly. * Code Refactoring * refactor: websocket auth change to call rpc of auth. * refactor: kick online user and remove token change to call auth rpc. * refactor: kick online user and remove token change to call auth rpc. * refactor: remove msggateway redis. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor webhook * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor webhook * refactor: cmd update. * refactor: cmd update. * fix: runtime: goroutine stack exceeds * refactor: cmd update. * refactor notification * refactor notification * refactor * refactor: cmd update. * refactor: cmd update. * refactor * refactor * refactor * protojson * protojson * protojson * go mod * wrapperspb * refactor: cmd update. * refactor: cmd update. * refactor: cmd update. * refactor: context update. * refactor: websocket update info. * refactor: websocket update info. * refactor: websocket update info. * refactor: websocket update info. * refactor: api name change. * refactor: debug info. * refactor: debug info. * refactor: debug info. * fix: update file * refactor * refactor * refactor: debug info. * refactor: debug info. * refactor: debug info. * refactor: debug info. * refactor: debug info. * refactor: debug info. * fix: callback update. * fix: callback update. * refactor * fix: update message. * fix: msg cache timeout. * refactor * refactor * fix: push update. * fix: push update. * fix: push update. * fix: push update. * fix: push update. * fix: push update. * refactor * refactor * fix: push update. * fix: websocket handle error remove when upgrade error. * fix: priority url * fix: minio config * refactor: add zk logger. * refactor * fix: minio config * refactor * refactor * refactor * refactor * refactor: remove zk logger. * refactor: update tools version. * refactor * refactor: update server version to 3.7.0. * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor * refactor: zk log debug. * refactor: zk log debug. * refactor: zk log debug. * refactor: zk log debug. * refactor: zk log debug. * refactor * refactor * refactor * refactor: log level change. * refactor: 3.7.0 code conventions. --------- Co-authored-by: skiffer-git <44203734@qq.com> Co-authored-by: withchao <993506633@qq.com> * update go.mod go.sum * Remove Chinese comments * user localhost for minio * user localhost for minio * Remove Chinese comments * Remove Chinese comments * Remove Chinese comments * Set up 4 instances of transfer * Set up 4 instances of transfer * Add comments to the configuration file * Add comments to the configuration file --------- Co-authored-by: root <root@localhost.localdomain> Co-authored-by: xuan <146319162+wxuanF@users.noreply.github.com> Co-authored-by: OpenIM-Gordon <46924906+FGadvancer@users.noreply.github.com> Co-authored-by: withchao <993506633@qq.com>
191 lines
4.4 KiB
YAML
191 lines
4.4 KiB
YAML
|
|
# Copyright © 2023 OpenIM open source community. All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
name: OpenIM CI Auto Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "README.md"
|
|
- "README_zh-CN.md"
|
|
- "**.md"
|
|
- "docs/**"
|
|
- "CONTRIBUTING.md"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
paths-ignore:
|
|
- "README.md"
|
|
- "README_zh-CN.md"
|
|
- "CONTRIBUTING/**"
|
|
- "**.md"
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
|
|
build-linux:
|
|
name: Execute OpenIM Script On Linux
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
environment:
|
|
name: openim
|
|
strategy:
|
|
matrix:
|
|
arch: [arm64, armv7, amd64]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '1.21'
|
|
|
|
- name: Set up Docker for Linux
|
|
run: |
|
|
sudo docker compose up -d
|
|
sudo sleep 30 # Increased sleep time for better stability
|
|
timeout-minutes: 20 # Increased timeout for Docker setup
|
|
|
|
|
|
- name: init
|
|
run: sudo bash bootstrap.sh
|
|
timeout-minutes: 20
|
|
|
|
- name: Build, Start, Check Services and Print Logs for Linux
|
|
run: |
|
|
sudo mage
|
|
sudo mage start
|
|
sudo mage check
|
|
|
|
|
|
- name: Restart Services and Print Logs
|
|
run: |
|
|
sudo mage stop
|
|
sudo mage start
|
|
sudo mage check
|
|
|
|
|
|
# build-mac:
|
|
# name: Execute OpenIM Script On macOS
|
|
# runs-on: macos-latest
|
|
# permissions:
|
|
# contents: write
|
|
# pull-requests: write
|
|
# environment:
|
|
# name: openim
|
|
# strategy:
|
|
# matrix:
|
|
# arch: [arm64, armv7, amd64]
|
|
#
|
|
# steps:
|
|
# - uses: actions/checkout@v3
|
|
|
|
# - name: Set up Go
|
|
# uses: actions/setup-go@v4
|
|
# with:
|
|
# go-version: '1.21'
|
|
|
|
|
|
# while ! docker system info > /dev/null 2>&1; do
|
|
# echo "Waiting for Docker to start..."
|
|
# sleep 10 # Increased delay to ensure Docker starts properly
|
|
# done
|
|
|
|
# - name: Install Docker
|
|
# run: |
|
|
# brew install docker
|
|
# brew install docker-compose
|
|
# sleep 10
|
|
# docker-compose up -d
|
|
# sleep 30
|
|
# timeout-minutes: 20
|
|
#
|
|
|
|
# - name: init
|
|
# run: sudo bash bootstrap.sh
|
|
# timeout-minutes: 20
|
|
|
|
# - name: Build, Start, Check Services and Print Logs for Linux
|
|
# run: |
|
|
# sudo mage
|
|
# sudo mage start
|
|
# sudo mage check
|
|
|
|
# - name: Restart Services and Print Logs
|
|
# run: |
|
|
# sudo mage stop
|
|
# sudo mage start
|
|
# sudo mage check
|
|
|
|
# build-windows:
|
|
# name: Execute OpenIM Script On Windows
|
|
# runs-on: windows-latest
|
|
# permissions:
|
|
# contents: write
|
|
# pull-requests: write
|
|
# environment:
|
|
# name: openim
|
|
# strategy:
|
|
# matrix:
|
|
# arch: [arm64, armv7, amd64]
|
|
#
|
|
# steps:
|
|
# - uses: actions/checkout@v3
|
|
|
|
# - name: Set up Go
|
|
# uses: actions/setup-go@v4
|
|
# with:
|
|
# go-version: '1.21'
|
|
|
|
# - name: Set up Docker for Windows
|
|
# run: |
|
|
# $images = @("zookeeper", "redis", "kafka")
|
|
# foreach ($image in $images) {
|
|
# $tag = "$image:latest"
|
|
# docker pull $tag | Out-Null
|
|
# if ($LASTEXITCODE -ne 0) {
|
|
# Write-Host "Skipping $image as it is not available for Windows"
|
|
# } else {
|
|
# Write-Host "Successfully pulled $image"
|
|
# }
|
|
# }
|
|
# docker compose up -d
|
|
# Start-Sleep -Seconds 30
|
|
# timeout-minutes: 20
|
|
# shell: pwsh
|
|
|
|
# - name: init
|
|
# run: bootstrap.bat
|
|
# timeout-minutes: 20
|
|
|
|
# - name: Build, Start, Check Services and Print Logs for Linux
|
|
# run: |
|
|
# mage
|
|
# mage start
|
|
# mage check
|
|
|
|
# - name: Restart Services and Print Logs
|
|
# run: |
|
|
# mage stop
|
|
# mage start
|
|
# mage check
|