-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
1963bdd
commit afb717e
Showing
8 changed files
with
98 additions
and
26 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,18 @@ | ||
name: Mirror | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
codeberg: | ||
if: github.repository_owner == 'jiacai2050' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pixta-dev/repository-mirroring-action@v1 | ||
with: | ||
target_repo_url: https://${{ secrets.CBTOKEN }}@codeberg.org/${{ github.repository }}.git |
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,4 +1,4 @@ | ||
|
||
run-examples: | ||
zig build run-basic | ||
zig build run-advanced | ||
zig build run-basic -freference-trace | ||
zig build run-advanced -freference-trace |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const std = @import("std"); | ||
|
||
const SEP = "-" ** 20; | ||
|
||
pub fn println(msg: []const u8) void { | ||
std.debug.print("{s}{s}{s}\n", .{ SEP, msg, SEP }); | ||
} |
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,8 +1,5 @@ | ||
pub const Easy = @import("easy.zig"); | ||
// pub const request = Easy.request; | ||
// pub const Request = Easy.Request; | ||
// pub const Response = Easy.Response; | ||
|
||
pub usingnamespace Easy; | ||
|
||
pub const print_libcurl_version = @import("c.zig").print_libcurl_version; | ||
pub const has_curl_header_support = @import("c.zig").has_curl_header_support; | ||
pub const has_parse_header_support = @import("c.zig").has_parse_header_support; |