-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c18565
commit e8c9e86
Showing
2 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Works with Zig master (localhost patch) | ||
on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
# platform: [ubuntu-latest, windows-latest, macos-latest] | ||
platform: [ubuntu-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: master | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: wget | ||
uses: wei/wget@v1 | ||
with: | ||
args: https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.8.tar.gz | ||
- name: Check zig version | ||
run: zig version | ||
- name: hack build.zig.zon | ||
run: | | ||
mv build.zig.zon build.zig.zon.moved && mv build.zig.zon.localhost build.zig.zon && python -m http.server & | ||
sleep 3 | ||
zig build | ||
- name: Build all examples | ||
run: ./build_all.sh | ||
- name: Run authentication tests | ||
run: zig build test-authentication | ||
- name: Run http parameter tests | ||
run: zig build test-httpparams | ||
- name: Run sendfile tests | ||
run: zig build test-sendfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters