未验证 提交 8663b8e2 编写于 作者: D Davies Liu 提交者: GitHub

build static linked (#147)

* build static linked

* try

* finish test
上级 a2c6b526
......@@ -2,6 +2,8 @@ name: release
on:
push:
branches:
- test_release
tags:
- v*
......
project_name: juicefs
env:
- GO111MODULE=on
- CGO_ENABLED=1
- GOPROXY=https://gocenter.io
- PKG=github.com/juicedata/juicefs/pkg/version
before:
......@@ -9,7 +10,6 @@ before:
builds:
- id: juicefs-darwin-amd64
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
ldflags: -s -w -X ${PKG}.version={{.Version}} -X ${PKG}.revision={{.ShortCommit}} -X ${PKG}.revisionDate={{.CommitDate}}
......@@ -20,7 +20,7 @@ builds:
- amd64
- id: juicefs-linux-amd64
env:
- CGO_ENABLED=1
- STATIC=1
ldflags: -s -w -X ${PKG}.version={{.Version}} -X ${PKG}.revision={{.ShortCommit}} -X ${PKG}.revisionDate={{.CommitDate}}
main: ./cmd
goos:
......@@ -29,7 +29,6 @@ builds:
- amd64
- id: juicefs-linux-arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
ldflags: -s -w -X ${PKG}.version={{.Version}} -X ${PKG}.revision={{.ShortCommit}} -X ${PKG}.revisionDate={{.CommitDate}}
main: ./cmd
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册