Skip to content

Commit 38fba17

Browse files
authored
Merge pull request #1665 from dolthub/daylon/fix-windows-release
Fixed Windows Release Building
2 parents 43148bb + 439b7a9 commit 38fba17

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/cd-release.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,29 @@ jobs:
2323
fi
2424
echo "version=$version" >> $GITHUB_OUTPUT
2525
26+
windows-extension-support:
27+
runs-on: windows-latest
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
with:
32+
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN || secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
33+
- name: Build SQL Syntax
34+
run: ./build.sh
35+
working-directory: ./postgres/parser
36+
shell: bash
37+
- name: Upload Extension Artifacts
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: windows-extension-artifacts
41+
path: |
42+
./core/extensions/pg_extension/output/pg_extension.dll
43+
./core/extensions/pg_extension/output/postgres.exe
44+
if-no-files-found: error
45+
retention-days: 1
46+
2647
create-release:
27-
needs: format-version
48+
needs: [format-version, windows-extension-support]
2849
name: Create release
2950
runs-on: ubuntu-22.04
3051
outputs:
@@ -67,6 +88,11 @@ jobs:
6788
run: gh pr merge --merge --auto "cd-release"
6889
env:
6990
GH_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN || secrets.REPO_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
91+
- name: Download Extension Artifacts
92+
uses: actions/download-artifact@v4
93+
with:
94+
name: windows-extension-artifacts
95+
path: ./core/extensions/pg_extension/output
7096
- name: Install Go
7197
uses: actions/setup-go@v5
7298
with:

0 commit comments

Comments
 (0)