Skip to content

Commit

Permalink
feat: add a ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
kyluke mcdougall committed Oct 6, 2024
1 parent 060ae55 commit 9ce1a0b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9ce1a0b

Please sign in to comment.