-
Notifications
You must be signed in to change notification settings - Fork 2
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
5 changed files
with
9 additions
and
59 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 |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -16,24 +14,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
# - uses: Hanaasagi/[email protected] | ||
# with: | ||
# cache-on-failure: false | ||
with: | ||
version: 0.13.0 | ||
- run: zig version | ||
- run: zig env | ||
- run: ls | ||
- run: ls zig-cache || echo 'no zig-cache' | ||
- run: rm -rf zig-cache/o/*/test | ||
- name: Build | ||
run: zig build --verbose | ||
- name: Run Tests | ||
run: zig build test | ||
- name: Install kcov | ||
run: sudo apt-get install -y kcov | ||
- name: Generate coverage | ||
run: kcov $PWD/kcov-out ./zig-cache/o/*/test | ||
run: kcov $PWD/kcov-out ./.zig-cache/o/*/test | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
directory: ./kcov-out/test | ||
|
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,3 +1,4 @@ | ||
**/zig-out/ | ||
**/zig-cache/ | ||
**/kcov-out/ | ||
.zig-cache/ |
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,6 +1,6 @@ | ||
.{ | ||
.name = "struct-env", | ||
.version = "0.1.0", | ||
.version = "0.1.1", | ||
.dependencies = .{}, | ||
.paths = .{""}, | ||
} |