Skip to content

Commit f0fb5fa

Browse files
committed
Add BUILD_SOURCEVERSION env to build workflows
Set the BUILD_SOURCEVERSION environment variable to the current GitHub SHA in Linux, macOS, and Windows build steps. This enables builds to reference the exact source version used, improving traceability and reproducibility + Enable Updates
1 parent 407c82c commit f0fb5fa

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ jobs:
133133
- name: Build Linux application (x64)
134134
env:
135135
NODE_OPTIONS: --max-old-space-size=4096
136+
BUILD_SOURCEVERSION: ${{ github.sha }}
136137
run: npm run gulp vscode-linux-x64
137138

138139
- name: Build DEB package (custom)
139140
env:
140141
APP_NAME: roopik
141142
VSCODE_ARCH: x64
143+
BUILD_SOURCEVERSION: ${{ github.sha }}
142144
run: bash .github/build/linux/package_roopik_deb.sh
143145
continue-on-error: true
144146

.github/workflows/build-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
run: npm run build
107107

108108
- name: Build macOS application (arm64)
109+
env:
110+
BUILD_SOURCEVERSION: ${{ github.sha }}
109111
run: npm run gulp vscode-darwin-arm64
110112

111113
- name: Import Apple signing certificate

.github/workflows/build-windows.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,18 @@ jobs:
120120
' sh {} \;
121121
122122
- name: Build Windows application
123+
env:
124+
BUILD_SOURCEVERSION: ${{ github.sha }}
123125
run: npm run gulp vscode-win32-x64
124126

125127
- name: Prepare Inno Setup tools
128+
env:
129+
BUILD_SOURCEVERSION: ${{ github.sha }}
126130
run: npm run gulp vscode-win32-x64-inno-updater
127131

128132
- name: Build Windows installer (User)
133+
env:
134+
BUILD_SOURCEVERSION: ${{ github.sha }}
129135
run: npm run gulp vscode-win32-x64-user-setup
130136

131137
# System installer commented out - use User installer for most cases

0 commit comments

Comments
 (0)