Skip to content

Commit

Permalink
feat(CI): add github workflow ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SuccinctPaul committed Nov 11, 2024
1 parent b02bbf9 commit 3a6c58a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
.idea/
.vscode
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2024-10-28

0 comments on commit 3a6c58a

Please sign in to comment.