Skip to content

Commit

Permalink
chore: initial commit with project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pevers committed Feb 21, 2024
1 parent 2778d7e commit d7c1a9b
Show file tree
Hide file tree
Showing 44 changed files with 5,246 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Format

on:
push:
branches:
- main
pull_request:
branches:
- main
- dev

jobs:
format:
runs-on: windows-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Install rustfmt with nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path=Cargo.toml --all -- --check
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main
- dev

jobs:
build-and-test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build and test
run: |
cargo build --verbose
cargo test --verbose
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@
*.exe
*.out
*.app

build

# Added by cargo

/target
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[rust]": {
"editor.rulers": [100]
}
}
Loading

0 comments on commit d7c1a9b

Please sign in to comment.