Skip to content

Commit

Permalink
Scaffold the repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jul 5, 2024
1 parent 02878f6 commit 1161417
Show file tree
Hide file tree
Showing 20 changed files with 742 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true

[*.json]
indent_size = 2

[*.jsonc]
indent_size = 2

[*.vsconfig]
indent_size = 2

[*.yaml]
indent_size = 2

[*.yml]
indent_size = 2
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text
*.verified.* text eol=lf
*.ico binary
*.pdf binary
*.png binary
*.zig eol=lf
*.zon eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @vezel-dev/graf-maintainers
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
version: 2
updates:
- package-ecosystem: github-actions
directories:
- /
schedule:
interval: daily
timezone: Europe/Copenhagen
time: "12:00"
open-pull-requests-limit: 25
labels: []
- package-ecosystem: nuget
directories:
- /
schedule:
interval: daily
timezone: Europe/Copenhagen
time: "12:00"
open-pull-requests-limit: 25
labels: []
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build
on:
push:
branches-ignore:
- dependabot/**
pull_request:
workflow_dispatch:
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-12
- macos-13
- macos-14
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- windows-2019
- windows-2022
mode:
- Debug
- ReleaseFast
- ReleaseSafe
- ReleaseSmall
runs-on: ${{ matrix.os }}
steps:
- name: Clone repository
uses: actions/[email protected]
with:
fetch-depth: 0
submodules: recursive
- name: Set up Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.13.0
- name: Check source code
run: |
zig build check --summary all
- name: Build binary artifacts
run: |
zig build --summary all -Doptimize=${{ matrix.mode }}
- name: Build and run tests
run: |
zig build test --summary all -Doptimize=${{ matrix.mode }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.zig-cache
/zig-out
95 changes: 95 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json",
"default": true,
"MD001": true,
"MD003": {
"style": "atx"
},
"MD004": {
"style": "asterisk"
},
"MD005": true,
"MD007": {
"start_indented": false,
"start_indent": 4,
"indent": 4
},
"MD009": {
"br_spaces": 0,
"strict": true
},
"MD010": {
"spaces_per_tab": 4
},
"MD011": true,
"MD012": true,
"MD013": {
"code_blocks": false,
"headings": false,
"tables": false
},
"MD014": true,
"MD018": true,
"MD019": true,
"MD020": true,
"MD021": true,
"MD022": true,
"MD023": true,
"MD024": true,
"MD025": true,
"MD026": {
"punctuation": "!,.:;?"
},
"MD027": true,
"MD028": true,
"MD029": {
"style": "ordered"
},
"MD030": true,
"MD031": true,
"MD032": true,
"MD033": {
"allowed_elements": [
"div",
"img",
"p",
"strong"
]
},
"MD034": true,
"MD035": {
"style": "--------------------------------------------------------------------------------"
},
"MD036": {
"punctuation": "!,.:;?"
},
"MD037": true,
"MD038": true,
"MD039": true,
"MD040": {
"language_only": true
},
"MD041": true,
"MD042": true,
"MD043": false,
"MD044": true,
"MD045": true,
"MD046": {
"style": "fenced"
},
"MD047": true,
"MD048": {
"style": "backtick"
},
"MD049": {
"style": "asterisk"
},
"MD050": {
"style": "asterisk"
},
"MD051": true,
"MD052": true,
"MD053": {
"ignored_definitions": []
}
}
15 changes: 15 additions & 0 deletions .netconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[file ".editorconfig"]
url = https://github.com/vezel-dev/.github/blob/master/syn/.editorconfig
sha = 25cfbb6a508a9fcf8444ef283ddfe7b2e5121bca
etag = df90691e6bc4d301e82e508fca55eed234028a335c3615cf916db00cb4a053f1
weak
[file ".gitattributes"]
url = https://github.com/vezel-dev/.github/blob/master/syn/.gitattributes
sha = 0ff05334db6d820dd16428e1aad477ed83ca10ef
etag = 0a6a1f6373760bc1c03e09e1efeeb77109705f11b159afd759e11550b45ee950
weak
[file ".markdownlint.json"]
url = https://github.com/vezel-dev/.github/blob/master/syn/.markdownlint.json
sha = 7d581ae5eedad5892855cebc673edafad664856b
etag = cf98ac95cf318b52e206b9003e342de9db2ecb7be062eab6edf1681b1f374b3a
weak
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"chdsbd.github-code-owners",
"codezombiech.gitignore",
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"llvm-vs-code-extensions.vscode-clangd",
"redhat.vscode-yaml",
"yy0931.gitconfig-lsp",
"ziglang.vscode-zig"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.exclude": {
".zig-cache": true,
"zig-out": true
}
}
Loading

0 comments on commit 1161417

Please sign in to comment.