Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit fb6d2b8ff23b7d41a5d5c0c39455d9bc558231be Author: Joseph Crowell <joseph.w.crowell@gmail.com> Date: Fri Dec 19 11:54:53 2025 +0000 update Dockerfile, compiling instructions and github workflow to include the goolm flag diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index da84ade..3ea71ff 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -317 +317 @@ jobs: uses: golangci/golangci-lint-action@v8 with: version: v2.1 - args: --config=.golangci-incremental.yaml + args: --build-tags goolm --config=.golangci-incremental.yaml   test: strategy: matrix: @@ -727 +727 @@ jobs: uses: actions/checkout@v5 - name: Build/upload matterbridge for ${{ matrix.platform.goos }}-${{ matrix.arch }} run: | - CGO_ENABLED=0 GOOS=${{ matrix.platform.goos }} GOARCH=${{ matrix.arch }} go build -ldflags "-s -X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o matterbridge + CGO_ENABLED=0 GOOS=${{ matrix.platform.goos }} GOARCH=${{ matrix.arch }} go build -tags goolm -ldflags "-s -X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o matterbridge - name: Upload matterbridge-${{ matrix.name }}-${{ matrix.arch }} uses: actions/upload-artifact@v4 with: diff --git a/docs/compiling.md b/docs/compiling.md index 382da89..209005b 100644 --- a/docs/compiling.md +++ b/docs/compiling.md @@ -824 +830 @@ Go 1.18+ is required. Make sure you have [Go](https://golang.org/doc/install) pr  Building the binary with **all** the bridges enabled needs about 3GB RAM to compile.  You can reduce this memory requirement to 0,5GB RAM by adding the `nomsteams` tag if you don't need/use the Microsoft Teams bridge.   -Matterbridge can be build without gcc/c-compiler: If you're running on windows first run `set CGO_ENABLED=0` on other platforms you prepend `CGO_ENABLED=0` to the `go build` command. (eg `CGO_ENABLED=0 go install github.com/matterbridge-org/matterbridge`) +Matterbridge can be build without gcc/c-compiler: If you're running on windows first run `set CGO_ENABLED=0` on other platforms you prepend `CGO_ENABLED=0` to the `go build` command. (eg `CGO_ENABLED=0 go build -tags goolm github.com/matterbridge-org/matterbridge`) + +To build the from the cloned GitHub repository without installing run in the root project directory: + +```bash +go build -tags goolm +```    To install the latest stable run:    ```bash -go install github.com/matterbridge-org/matterbridge +go install -tags goolm github.com/matterbridge-org/matterbridge  ```    To install the latest dev run:    ```bash -go install github.com/matterbridge-org/matterbridge@master +go install -tags goolm github.com/matterbridge-org/matterbridge@master  ```    To install the latest stable run without msteams or zulip bridge:    ```bash -go install -tags nomsteams,nozulip github.com/matterbridge-org/matterbridge +go install -tags goolm,nomsteams,nozulip github.com/matterbridge-org/matterbridge  ```    You should now have matterbridge binary in the ~/go/bin directory: diff --git a/tgs.Dockerfile b/tgs.Dockerfile index b43b147..0ee1736 100644 --- a/tgs.Dockerfile +++ b/tgs.Dockerfile @@ -57 +57 @@ RUN apk add \ go \ git \   && cd /go/src/matterbridge \ - && CGO_ENABLED=0 go build -mod vendor -ldflags "-X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge + && CGO_ENABLED=0 go build -tags goolm -mod vendor -ldflags "-X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge    FROM alpine  RUN apk --no-cache add \