Skip to content

Commit

Permalink
GH Action : try reading version from Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 20, 2023
1 parent aed3559 commit bffbe6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ jobs:
npm run build
working-directory: app/ux

- name: Build
- name: Build Main
run: |
$env:DEV_VERSION = ((Get-Content .\Makefile -TotalCount 1) -split '=')[1].Trim()
$env:CGO_CXXFLAGS="-I${{github.workspace}}\libs\webview2\build\native\include"
go build -ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=0.9.5 -X github.com/pydio/cells-sync/common.BuildStamp=20230526 -X github.com/pydio/cells-sync/common.BuildRevision=rev" -o cells-sync.exe
go build -ldflags "-H=windowsgui -X github.com/pydio/cells-sync/common.Version=$env:DEV_VERSION -X github.com/pydio/cells-sync/common.BuildStamp=20230526 -X github.com/pydio/cells-sync/common.BuildRevision=rev" -o cells-sync.exe
- name: Upload
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit bffbe6e

Please sign in to comment.