Skip to content

Commit 9d9d221

Browse files
committed
Make dist/build-version in macOS build
1 parent ac85ac5 commit 9d9d221

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-macos.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ jobs:
102102
- name: Build git-annex
103103
run: make osxapp
104104

105+
- name: Update version info for git rev being built.
106+
run: |
107+
mkdir -p dist
108+
make Build/BuildVersion
109+
./Build/BuildVersion > dist/build-version
110+
105111
- name: Add version to DMG name and move it
106112
run: |
107113
mv tmp/git-annex.dmg \

.github/workflows/template/build-{{ostype}}.yaml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ jobs:
175175
- name: Build git-annex
176176
run: make osxapp
177177

178+
- name: Update version info for git rev being built.
179+
run: |
180+
mkdir -p dist
181+
make Build/BuildVersion
182+
./Build/BuildVersion > dist/build-version
183+
178184
- name: Add version to DMG name and move it
179185
run: |
180186
mv tmp/git-annex.dmg \

0 commit comments

Comments
 (0)