Skip to content

Commit cd90fec

Browse files
authored
adds zip on win CI (#1316)
* adds zip on win * adds zip * adds zip
1 parent 4e7e646 commit cd90fec

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/binaries.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ jobs:
6767
- name: Install dependencies
6868
run: nimble install -y
6969

70+
- name: Install zip
71+
if: matrix.target.os == 'windows'
72+
run: choco install zip
73+
7074
- name: build nimble
7175
run: |
7276
if [[ "${{ matrix.target.triple }}" == "x86_64-apple-darwin14" ]]; then
@@ -79,17 +83,30 @@ jobs:
7983
nim -d:release c src/nimble.nim;
8084
fi
8185
82-
- name: Compress the Nim Language Server binaries
86+
- name: Compress binaries
8387
run: |
8488
cd src
85-
tar -c -z -v -f ../nimble-${{ matrix.target.name }}.tar.gz `ls nimble{,.exe} 2>/dev/null || true`
89+
if [[ "${{ matrix.target.os }}" == "windows" ]]; then
90+
# Create both formats for Windows
91+
tar -c -z -v -f ../nimble-${{ matrix.target.name }}.tar.gz nimble.exe
92+
zip ../nimble-${{ matrix.target.name }}.zip nimble.exe
93+
else
94+
tar -c -z -v -f ../nimble-${{ matrix.target.name }}.tar.gz nimble
95+
fi
8696
87-
- name: Upload the Nim Language Server Binaries
97+
- name: Upload tar.gz artifact
8898
uses: actions/upload-artifact@v4
8999
with:
90100
name: nimble-${{ matrix.target.name }}.tar.gz
91101
path: nimble-${{ matrix.target.name }}.tar.gz
92102

103+
- name: Upload zip artifact (Windows only)
104+
if: matrix.target.os == 'windows'
105+
uses: actions/upload-artifact@v4
106+
with:
107+
name: nimble-${{ matrix.target.name }}.zip
108+
path: nimble-${{ matrix.target.name }}.zip
109+
93110
create-github-release:
94111
if: github.event_name != 'pull_request'
95112
name: Create GitHub Release

0 commit comments

Comments
 (0)