Skip to content

Commit

Permalink
Merge pull request #1 from Ouest-France/feat/build-static
Browse files Browse the repository at this point in the history
Build the binary without dependency
  • Loading branch information
barbaluc authored Feb 20, 2020
2 parents 1ad96e4 + 044548d commit c793ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v1

- name: Build
run: go build -o terraform-provider-ldap_${GITHUB_REF}
run: CGO_ENABLED=0 go build -ldflags="-w -s" -o terraform-provider-ldap_${GITHUB_REF}

- name: Setup Lint
run: curl -LO https://github.com/golangci/golangci-lint/releases/download/v1.19.1/golangci-lint-1.19.1-linux-amd64.tar.gz && tar -xf golangci-lint-1.19.1-linux-amd64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v1

- name: Build
run: go build -o terraform-provider-ldap_${{ steps.get_version.outputs.VERSION }}
run: CGO_ENABLED=0 go build -ldflags="-w -s" -o terraform-provider-ldap_${{ steps.get_version.outputs.VERSION }}

- name: Setup Lint
run: curl -LO https://github.com/golangci/golangci-lint/releases/download/v1.19.1/golangci-lint-1.19.1-linux-amd64.tar.gz && tar -xf golangci-lint-1.19.1-linux-amd64.tar.gz
Expand Down

0 comments on commit c793ea9

Please sign in to comment.