Skip to content

Commit 6afbfcb

Browse files
committed
Enable windows, pin dune
1 parent 92e21b1 commit 6afbfcb

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
os: [
1212
ubuntu-latest,
1313
macos-latest,
14-
# windows-latest https://github.com/ocaml/dune/issues/11645
14+
windows-latest
1515
]
1616
ocaml-compiler:
1717
- 5.2.1
@@ -112,11 +112,11 @@ jobs:
112112
name: macos-latest-artifact
113113
path: _release/platform-darwin-x64
114114

115-
# - name: Download windows artifacts
116-
# uses: actions/download-artifact@v4
117-
# with:
118-
# name: windows-latest-artifact
119-
# path: _release/platform-windows-x64
115+
- name: Download windows artifacts
116+
uses: actions/download-artifact@v4
117+
with:
118+
name: windows-latest-artifact
119+
path: _release/platform-windows-x64
120120

121121
- name: Debug downloaded artifacts
122122
run: ls -R _release
@@ -145,10 +145,10 @@ jobs:
145145
zip -r ../../query-json-linux-x64.zip .
146146
cd ../..
147147
148-
# cd _release/platform-windows-x64
149-
# mv bin.exe query-json
150-
# zip -r ../../query-json-windows-x64.zip .
151-
# cd ../..
148+
cd _release/platform-windows-x64
149+
mv bin.exe query-json
150+
zip -r ../../query-json-windows-x64.zip .
151+
cd ../..
152152
153153
- name: Check if should be published
154154
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
@@ -215,13 +215,13 @@ jobs:
215215
asset_name: query-json-linux-x64.zip
216216
asset_content_type: application/zip
217217

218-
# - name: Upload query-json-windows-x64.zip to Github release
219-
# if: ${{ steps.newVersion.outputs.shouldPublish == 'true' }}
220-
# uses: actions/upload-release-asset@v1
221-
# env:
222-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223-
# with:
224-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
225-
# asset_path: ./query-json-windows-x64.zip
226-
# asset_name: query-json-windows-x64.zip
227-
# asset_content_type: application/zip
218+
- name: Upload query-json-windows-x64.zip to Github release
219+
if: ${{ steps.newVersion.outputs.shouldPublish == 'true' }}
220+
uses: actions/upload-release-asset@v1
221+
env:
222+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223+
with:
224+
upload_url: ${{ steps.create_release.outputs.upload_url }}
225+
asset_path: ./query-json-windows-x64.zip
226+
asset_name: query-json-windows-x64.zip
227+
asset_content_type: application/zip

query-json.opam.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pin-depends: [
2+
[ "dune.dev" "git+https://github.com/ocaml/dune.git#3e6cf8979f0bfd0d5cff556aa02e5115725e09cd" ]
3+
]

0 commit comments

Comments
 (0)