diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..57a208c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: Main Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 150 # Consider increasing timeout + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: clippy + + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --all --verbose + + - name: Test + run: cargo test --all --verbose \ No newline at end of file diff --git a/.gitignore b/.gitignore index d01bd1a..8f45e68 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ Cargo.lock # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ \ No newline at end of file +.idea/ +.vscode \ No newline at end of file diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..07431bb --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +nightly-2024-10-28