Skip to content

Commit

Permalink
project structure and rust.yml for Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kanekoshoyu committed Dec 21, 2023
1 parent 74eadcc commit e2f13bd
Show file tree
Hide file tree
Showing 5 changed files with 500 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose


clippy_check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# target
target
# setting
.vscode
File renamed without changes.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// worktable
pub mod worktable;
Loading

0 comments on commit e2f13bd

Please sign in to comment.