From 9ce1a0bf1a2846f4b4c2010bc203d16b8bc110e1 Mon Sep 17 00:00:00 2001 From: kyluke mcdougall <=> Date: Sun, 6 Oct 2024 14:50:45 +0200 Subject: [PATCH] feat: add a ci action --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) 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..1922bd0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: + - '**' + tags: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Build project + run: cargo build --release + + - name: Run tests + run: cargo test + + - name: Create tarball + if: startsWith(github.ref, 'refs/tags/') + run: | + tar -czvf termai.tar.gz target/release/termai \ No newline at end of file