|
|
|
@ -125,7 +125,6 @@ jobs:
|
|
|
|
|
matrix:
|
|
|
|
|
go_version: ["1.21"]
|
|
|
|
|
os: ["ubuntu-latest"]
|
|
|
|
|
arch: [arm64, armv7, amd64]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout and Install OpenIM
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
@ -179,7 +178,7 @@ jobs:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
execute-scripts:
|
|
|
|
|
name: Execute OpenIM Script On ${{ matrix.os }}
|
|
|
|
|
name: Execute OpenIM Script On ${{ matrix.os }}-${{ matrix.arch }}
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
permissions:
|
|
|
|
|
contents: write
|
|
|
|
@ -188,8 +187,9 @@ jobs:
|
|
|
|
|
name: openim
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
go_version: ["1.20"]
|
|
|
|
|
go_version: ["1.21"]
|
|
|
|
|
os: ["ubuntu-latest", "macos-latest"]
|
|
|
|
|
arch: [arm64, armv7, amd64]
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout code
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
@ -207,7 +207,7 @@ jobs:
|
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
# - name: Install latest Bash (macOS only)
|
|
|
|
|
# if: runner.os == 'macOS'
|
|
|
|
|
# if: runner.os == 'macOS' && matrix.arch == 'arm64'
|
|
|
|
|
# run: |
|
|
|
|
|
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
|
# brew update
|
|
|
|
@ -227,7 +227,7 @@ jobs:
|
|
|
|
|
sudo sleep 20
|
|
|
|
|
|
|
|
|
|
# - name: Set up Docker for macOS
|
|
|
|
|
# if: runner.os == 'macOS'
|
|
|
|
|
# if: runner.os == 'macOS' && matrix.arch == 'arm64'
|
|
|
|
|
# run: |
|
|
|
|
|
# brew install --cask docker
|
|
|
|
|
# open /Applications/Docker.app
|
|
|
|
@ -258,13 +258,13 @@ jobs:
|
|
|
|
|
sudo make check
|
|
|
|
|
|
|
|
|
|
- name: Restart Services and Print Logs for Ubuntu
|
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
|
if: runner.os == 'Linux' && matrix.arch == 'amd64'
|
|
|
|
|
run: |
|
|
|
|
|
sudo make restart
|
|
|
|
|
sudo make check
|
|
|
|
|
|
|
|
|
|
- name: Build, Start, Check Services and Print Logs for macOS
|
|
|
|
|
if: runner.os == 'macOS'
|
|
|
|
|
if: runner.os == 'macOS' && matrix.arch == 'arm64'
|
|
|
|
|
run: |
|
|
|
|
|
make build
|
|
|
|
|
|
|
|
|
|