From 1ddd4a7ed97ad025b550f26a54a9a0a4f3667996 Mon Sep 17 00:00:00 2001 From: Nettika Date: Mon, 4 Jul 2022 22:37:24 -0700 Subject: [PATCH] Add CI workflow --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..31444fc --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Build + +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 + - name: Build no_std + run: cargo build --no-default-features + - name: Build no_std with allocator + run: cargo build --no-default-features --features alloc + - name: Run tests + run: cargo test \ No newline at end of file