Skip to content

Commit ed9e306

Browse files
committed
Initial commit: migrated to gh repo
0 parents  commit ed9e306

17 files changed

+6721
-0
lines changed

.github/workflows/rust.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Rust
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_and_test:
7+
name: Build and Test
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
rust: [stable]
13+
fail-fast: true
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Rust
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: ${{ matrix.rust }}
22+
profile: minimal
23+
override: true
24+
25+
- name: Cache Cargo dependencies
26+
uses: actions/cache@v3
27+
with:
28+
path: |
29+
~/.cargo/bin/
30+
~/.cargo/registry/index/
31+
~/.cargo/registry/cache/
32+
~/.cargo/git/db/
33+
target/
34+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
35+
restore-keys: |
36+
${{ runner.os }}-cargo-
37+
- name: Run Clippy
38+
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'
39+
uses: actions-rs/clippy-check@v1
40+
with:
41+
token: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Build
44+
run: cargo build --verbose
45+
46+
- name: Run tests
47+
run: cargo test --verbose

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/target
2+
.env
3+
/.idea
4+
/.zed
5+
*.redb

AUTHORS

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is the official list of Direct Decisions Discord bot authors for copyright purposes.
2+
3+
Petar Radovic <[email protected]>

0 commit comments

Comments
 (0)