mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: fox openim support arm arch
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
7dcd40401f
commit
eba4189660
14
.github/workflows/openimci.yml
vendored
14
.github/workflows/openimci.yml
vendored
@ -125,7 +125,6 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
go_version: ["1.21"]
|
go_version: ["1.21"]
|
||||||
os: ["ubuntu-latest"]
|
os: ["ubuntu-latest"]
|
||||||
arch: [arm64, armv7, amd64]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout and Install OpenIM
|
- name: Checkout and Install OpenIM
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -179,7 +178,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
execute-scripts:
|
execute-scripts:
|
||||||
name: Execute OpenIM Script On ${{ matrix.os }}
|
name: Execute OpenIM Script On ${{ matrix.os }}-${{ matrix.arch }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -188,8 +187,9 @@ jobs:
|
|||||||
name: openim
|
name: openim
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go_version: ["1.20"]
|
go_version: ["1.21"]
|
||||||
os: ["ubuntu-latest", "macos-latest"]
|
os: ["ubuntu-latest", "macos-latest"]
|
||||||
|
arch: [arm64, armv7, amd64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -207,7 +207,7 @@ jobs:
|
|||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# - name: Install latest Bash (macOS only)
|
# - name: Install latest Bash (macOS only)
|
||||||
# if: runner.os == 'macOS'
|
# if: runner.os == 'macOS' && matrix.arch == 'arm64'
|
||||||
# run: |
|
# run: |
|
||||||
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
# brew update
|
# brew update
|
||||||
@ -227,7 +227,7 @@ jobs:
|
|||||||
sudo sleep 20
|
sudo sleep 20
|
||||||
|
|
||||||
# - name: Set up Docker for macOS
|
# - name: Set up Docker for macOS
|
||||||
# if: runner.os == 'macOS'
|
# if: runner.os == 'macOS' && matrix.arch == 'arm64'
|
||||||
# run: |
|
# run: |
|
||||||
# brew install --cask docker
|
# brew install --cask docker
|
||||||
# open /Applications/Docker.app
|
# open /Applications/Docker.app
|
||||||
@ -258,13 +258,13 @@ jobs:
|
|||||||
sudo make check
|
sudo make check
|
||||||
|
|
||||||
- name: Restart Services and Print Logs for Ubuntu
|
- name: Restart Services and Print Logs for Ubuntu
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux' && matrix.arch == 'amd64'
|
||||||
run: |
|
run: |
|
||||||
sudo make restart
|
sudo make restart
|
||||||
sudo make check
|
sudo make check
|
||||||
|
|
||||||
- name: Build, Start, Check Services and Print Logs for macOS
|
- name: Build, Start, Check Services and Print Logs for macOS
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS' && matrix.arch == 'arm64'
|
||||||
run: |
|
run: |
|
||||||
make build
|
make build
|
||||||
|
|
||||||
|
|||||||
@ -3,5 +3,6 @@ go.mod
|
|||||||
go.sum
|
go.sum
|
||||||
third_party/
|
third_party/
|
||||||
translations/
|
translations/
|
||||||
log
|
logs
|
||||||
|
.git
|
||||||
.golangci.yml
|
.golangci.yml
|
||||||
Loading…
x
Reference in New Issue
Block a user