From 2790fc42c21f215376a4eeaf1d10b9336d324e55 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 8 Feb 2021 22:49:13 +0200 Subject: [PATCH] Add macOS builds --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22eeace..4a3dd6c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,41 @@ windows/amd64: paths: - gomuks.exe +macos/amd64: + tags: + - macos + - amd64 + script: + - go build -o gomuks + - install_name_tool -change /usr/local/opt/libolm/lib/libolm.3.dylib @rpath/libolm.3 gomuks + - install_name_tool -add_rpath @executable_path gomuks + - install_name_tool -add_rpath /usr/local/opt/libolm/lib gomuks + - cp /usr/local/opt/libolm/lib/libolm.3.dylib . + artifacts: + paths: + - gomuks + - libolm.3.dylib + +macos/arm64: + tags: + - macos + - arm64 + before_script: + - export LIBRARY_PATH=/opt/homebrew/lib + - export CPATH=/opt/homebrew/include + - export PATH=/opt/homebrew/bin:$PATH + script: + - go build -o gomuks + - install_name_tool -change /opt/homebrew/opt/libolm/lib/libolm.3.dylib @rpath/libolm.3 gomuks + - install_name_tool -add_rpath @executable_path gomuks + - install_name_tool -add_rpath /opt/homebrew/opt/libolm/lib gomuks + - install_name_tool -add_rpath /usr/local/opt/libolm/lib gomuks + - cp /opt/homebrew/opt/libolm/lib/libolm.3.dylib . + artifacts: + paths: + - gomuks + - libolm.3.dylib + debian: image: debian stage: package