From 47ea731c8bf917e746806fe380016b5d399fdd23 Mon Sep 17 00:00:00 2001 From: Denys Mentiei Date: Wed, 24 Jan 2024 20:32:11 +0100 Subject: [PATCH] CI first try. --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ TODO.md | 8 ++++++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ce8af1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Sanity check + +on: + push: + branches: + - main + pull_request: + types: [opened, reopened] + paths-ignore: ['**.md'] + +env: + CARGO_TERM_COLOR: always + +jobs: + verify: + name: Check + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + - beta + - nightly + steps: + - uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo check --verbose + - run: cargo check --verbose -F enabled -F attributes + - run: cargo test + - run: cargo test -F enabled -F attributes + - run: cargo build --examples + - run: cargo build --examples -F instrumented diff --git a/TODO.md b/TODO.md index a6302bb..a573b12 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,9 @@ # TODO +- [ ] ci on github +- [ ] xtasks for tests/deploy +- [ ] add examples readme and comment them more +- [ ] add messages example - [ ] auto-function proc-macro attributes: - [x] #[instrument] - [ ] #[instrument(name)] @@ -10,8 +14,8 @@ - [x] write nice error messages :Errors - [ ] proc-macro attribute over impl to mark every method - [ ] ability to skip methods -- [ ] add messages example -- [ ] add proc-macro attribue tests +- [ ] support `plot!` in expr pos +- [ ] add proc-macro attribute tests - [ ] callstacks! depth is at most 62 - [ ] what's up with locks & C API - [ ] what's up with alloc & free, named overloads