-
Notifications
You must be signed in to change notification settings - Fork 0
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
a78be84
commit 5b99b2d
Showing
37 changed files
with
288,783 additions
and
1 deletion.
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
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 @@ | ||
/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
c/sqlite3.c linguist-vendored | ||
c/sqlite3.h linguist-vendored | ||
zig.mod linguist-vendored | ||
*.zig text=auto eol=lf |
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,44 @@ | ||
name: Bug report | ||
description: Create a bug report | ||
labels: | ||
- bug | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
# A bug means something doesn't work as expected | ||
Remember to include as much detail as possible. | ||
- type: input | ||
id: commit | ||
attributes: | ||
label: zig-sqlite commit | ||
description: "The git commit of zig-sqlite" | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: zig_version | ||
attributes: | ||
label: Zig version | ||
description: "The output of `zig version`" | ||
placeholder: "0.11.0-dev.3335+3085e2af4" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: repro | ||
attributes: | ||
label: Steps to reproduce | ||
description: How can someone reproduce the problem you encountered ? Include a self-contained reproducer if possible | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected behaviour | ||
description: What did you expect to happen? | ||
validations: | ||
required: true |
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,6 @@ | ||
# Description | ||
|
||
Please describe the changes you want to make and why. Please also provide an explanation of the implementation. | ||
As a rule of thumb, give as much detail as you would want to see if you were to review this PR. | ||
|
||
If this PR closes an issue, please reference it with something like "Closes #issue". |
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,78 @@ | ||
name: CI | ||
|
||
on: | ||
create: | ||
push: | ||
branches: master | ||
paths: | ||
- '**.zig' | ||
pull_request: | ||
schedule: | ||
- cron: "0 13 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: master | ||
- run: zig fmt --check *.zig | ||
|
||
test-in-memory: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup zig | ||
uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: master | ||
|
||
- name: Install qemu | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
sudo apt-get update -y && sudo apt-get install -y qemu-user-binfmt | ||
- name: Restore cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
zig-cache | ||
~/.cache/zig | ||
key: ${{ runner.os }}-${{ matrix.os }}-zig-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- | ||
|
||
- name: Run Tests in memory | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine | ||
- name: Run Tests in memory | ||
if: ${{ matrix.os != 'ubuntu-latest' }} | ||
run: zig build test -Dci=true -Din_memory=true --summary all | ||
|
||
test-loadable-extension: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup zig | ||
uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: master | ||
|
||
- name: Build the example zigcrypto loadable extension | ||
run: zig build zigcrypto | ||
- name: Test the zigcrypto loadable extension | ||
run: ./zig-out/bin/zigcrypto-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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/build_runner.zig | ||
/.zig-cache | ||
zig-out | ||
.zigmod | ||
deps.zig | ||
core.* | ||
/qemu*.core | ||
/fuzz/outputs |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Vincent Rischmann <vincent@rischmann.fr> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.