Skip to content

Commit

Permalink
macOS static version test v2
Browse files Browse the repository at this point in the history
  • Loading branch information
swazau committed Jun 24, 2024
1 parent 5733936 commit c838100
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
run: go mod tidy

- name: Get version info
run: echo "version=$(git describe --tags HEAD)" >> $GITHUB_ENV
run: |
echo "version=$(git describe --tags --always --dirty)" >> $GITHUB_ENV
echo "date=$(date +%Y-%m-%d)" >> $GITHUB_ENV
- name: Build gocryptfs
run: |
go build -ldflags "-X main.GitVersion=${{ env.version }} -X main.GitVersionFuse=${{ env.version }} -X main.BuildDate=$(date +%Y-%m-%d) \
-linkmode external -extldflags '-fno-PIC -static'" -buildmode=pie -tags without_openssl -o gocryptfs
go build -ldflags="-X \"main.GitVersion=${{ env.version }}\" -X \"main.GitVersionFuse=${{ env.version }}\" -X \"main.BuildDate=${{ env.date }}\" -extldflags '-static'" -tags without_openssl -o gocryptfs
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c838100

Please sign in to comment.