-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Showing
38 changed files
with
424 additions
and
265 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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
name: Works with Zig master | ||
on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- zig-0.12.0 | ||
pull_request: | ||
branches: | ||
- zig-0.12.0 | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
matrix: | ||
# platform: [ubuntu-latest, windows-latest, macos-latest] | ||
platform: [ubuntu-latest] | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -26,5 +25,46 @@ jobs: | |
run: zig version | ||
- name: Build all examples | ||
run: zig build all | ||
- name: Run all tests | ||
run: zig build test | ||
# Run tests separately so we can see more clearly which one fails | ||
- name: Run mustache tests | ||
run: zig build test-mustache | ||
- name: Run httpparams tests | ||
run: zig build test-httpparams | ||
- name: Run sendfile tests | ||
run: zig build test-sendfile | ||
- name: Run authentication tests | ||
run: zig build test-authentication | ||
- name: Report end of tests | ||
run: echo "tests finished" | ||
|
||
update-readme: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: master | ||
|
||
- name: Build announceybot | ||
run: zig build announceybot | ||
|
||
- name: Run script to update README | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ steps.tag.outputs.version }} | ||
run: | | ||
zig-out/bin/announceybot update-readme "zig-0.12.0" | ||
- name: Commit and push if it has changed | ||
run: | | ||
git diff | ||
git checkout zig-0.12.0 | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -am "Update README" | ||
git push origin zig-0.12.0 | ||
>>>>>>> zig-0.12.0 |
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ wrk/csharp/obj/ | |
wrk/csharp/out/ | ||
scratch | ||
**/.mypy_cache/* | ||
docs/ | ||
.DS_Store | ||
.vs/ | ||
**/*.perflog | ||
|
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
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
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 |
---|---|---|
@@ -1 +1,10 @@ | ||
.{ .name = "zap", .version = "0.6.0" } | ||
.{ | ||
.name = "zap", | ||
.version = "0.7.0", | ||
.paths = .{ | ||
"build.zig", | ||
"build.zig.zon", | ||
"src", | ||
"facil.io", | ||
}, | ||
} |
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
Oops, something went wrong.