From e095db400f702b1cc5953f9192f2f710a87537a9 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Wed, 16 Aug 2023 16:02:15 +0800 Subject: [PATCH] Add build workflow for MacOSX --- .github/workflows/build_for_macos.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build_for_macos.yml diff --git a/.github/workflows/build_for_macos.yml b/.github/workflows/build_for_macos.yml new file mode 100644 index 000000000..c94bf6aaf --- /dev/null +++ b/.github/workflows/build_for_macos.yml @@ -0,0 +1,18 @@ +name: Build for MacOSX + +on: + release: + types: [published] + +jobs: + build: + name: Build + runs-on: macos-12 + env: + VERSION: ${{ github.ref }} + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - run: git branch + - run: GOOS=darwin GOARCH=amd64 go build -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=${cat ./version}'" -o out/aliyun.amd64 main/main.go