Skip to content

Commit 29b8b5d

Browse files
committed
Adding Windows exe check
1 parent 11eb2d4 commit 29b8b5d

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

.github/workflows/windows-installer.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ jobs:
5757
with:
5858
path: ${{ steps.extract.outputs.build_dir }}/win/innosetup.iss
5959
options: /Qp
60+
- name: Test exe
61+
shell: pwsh
62+
run: |
63+
$file = Get-Item .\win\Output\*.exe
64+
Start-Process -FilePath ".\win\Output\$($file.Name)" -ArgumentList '/VERYSILENT', '/SUPPRESSMSGBOXES', '/ALLUSERS', -Wait
65+
66+
$sash = "$($Env:Programfiles)\Sagittarius\sash.exe"
67+
Start-Process -FilePath $sash -ArgumentList '-Einfo', ".\example\net\http-client0.scm" -Wait -NoNewWindow
68+
working-directory: ${{ steps.extract.outputs.build_dir }}
6069
- name: Upload installer
6170
id: upload-windows-installer
6271
uses: actions/upload-artifact@v6

doc/utils/net/http-client.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,7 @@ also provides asynchronous calling atop future object of
1212

1313
The following example shows how to use in a nutshell.
1414

15-
```scheme
16-
(import (rnrs)
17-
(net http-client)
18-
(util concurrent))
19-
20-
(define client (http:client-builder
21-
(follow-redirects (http:redirect normal))))
22-
23-
(let ((future (http:client-send-async client
24-
(http:request-builder
25-
(uri "http://google.com")))))
26-
;; do whatever you need to do during the above HTTP call
27-
(let ((response (future-get future)))
28-
(http:response-status response) ;; -> 200
29-
(http:response-headers response) ;; -> header object
30-
(http:response-body response) ;; -> body as bytevector
31-
))
32-
```
15+
* @[-[Http Client](../../example/net/http-client0.scm)]
3316

3417
### [§3] HTTP client
3518

example/net/http-client0.scm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
(import (rnrs)
2+
(net http-client)
3+
(util concurrent))
4+
5+
(define client (http:client-builder
6+
(follow-redirects (http:redirect normal))))
7+
8+
(let ((future (http:client-send-async client
9+
(http:request-builder
10+
(uri "http://google.com")))))
11+
;; do whatever you need to do during the above HTTP call
12+
(let ((response (future-get future)))
13+
(http:response-status response) ;; -> 200
14+
(http:response-headers response) ;; -> header object
15+
(http:response-body response) ;; -> body as bytevector
16+
))

0 commit comments

Comments
 (0)