Skip to content

Commit

Permalink
feat: initial version (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrichard authored Nov 21, 2024
1 parent 15baec2 commit 59ad697
Show file tree
Hide file tree
Showing 32 changed files with 5,366 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

[target.riscv64gc-unknown-linux-gnu]
linker = "riscv64-linux-gnu-gcc"

[alias]
ci-fmt = "fmt --all -- --check"
ci-fmt-fix = "fmt --all"
ci-clippy = "lints clippy --all-targets --all-features"
ci-test-compile = "test --no-run --workspace --all-features --no-default-features"
ci-test = "nextest run --all-features --release --workspace --profile ci"
ci-check = "check --workspace --release --all-features --all-targets --locked"
6 changes: 6 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[profile.ci]
slow-timeout = { period = "60s", terminate-after = 4 }

[profile.ci.junit] # this can be some other profile, too
path = "junit.xml"

36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: "[TITLE]"
labels: 'bug-report'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS & Version: [e.g. iOS 10.2.1]
- Browser & Version [e.g. chrome v71.0.12345]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser & Version [e.g. stock browser v0.1.2]

**Additional context**
Add any other context about the problem here.
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Description
---

Motivation and Context
---

How Has This Been Tested?
---

What process can a PR reviewer use to test or verify this change?
---

Breaking Changes
---

- [x] None
- [ ] Requires CLI data directory to be deleted
- [ ] Other - Please specify
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
27 changes: 27 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Security audit

'on':
# push:
# paths:
# # Run if workflow changes
# - '.github/workflows/audit.yml'
# # Run on changed dependencies
# - '**/Cargo.toml'
# - '**/Cargo.lock'
# # Run if the configuration file changes
# - '**/audit.toml'
# Rerun periodicly to pick up new advisories
schedule:
- cron: '43 05 * * *'
# Run manually
workflow_dispatch:

jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
68 changes: 68 additions & 0 deletions .github/workflows/build_binaries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[
{
"name": "linux-x86_64",
"runs-on": "ubuntu-22.04",
"rust": "1.77",
"target": "x86_64-unknown-linux-gnu",
"cross": false,
"features": ""
},
{
"name": "linux-arm64",
"runs-on": "ubuntu-20.04",
"rust": "1.77",
"target": "aarch64-unknown-linux-gnu",
"cross": true,
"flags": "--workspace --exclude tari_integration_tests",
"build_enabled": true,
"best_effort": true
},
{
"name": "linux-riscv64",
"runs-on": "ubuntu-latest",
"rust": "stable",
"target": "riscv64gc-unknown-linux-gnu",
"cross": true,
"flags": "--workspace --exclude tari_integration_tests",
"build_enabled": true,
"best_effort": true
},

{
"name": "macos-x86_64",
"runs-on": "macos-12",
"rust": "1.77",
"target": "x86_64-apple-darwin",
"cross": false,
"features": ""
},
{
"name": "macos-arm64",
"runs-on": "macos-14",
"rust": "1.77",
"target": "aarch64-apple-darwin",
"cross": false,
"features": "",
"build_enabled": true,
"best_effort": true
},
{
"name": "windows-x64",
"runs-on": "windows-2019",
"rust": "1.77",
"target": "x86_64-pc-windows-msvc",
"cross": false,
"features": ""
},
{
"name": "windows-arm64",
"runs-on": "windows-latest",
"rust": "1.77",
"target": "aarch64-pc-windows-msvc",
"cross": false,
"target_bins": "tari_dan_wallet_cli, tari_dan_wallet_daemon, tari_indexer, tari_validator_node, tari_signaling_server",
"features": "",
"build_enabled": true,
"best_effort": true
}
]
Loading

0 comments on commit 59ad697

Please sign in to comment.