Skip to content

Commit

Permalink
Add github actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanses authored Sep 12, 2024
1 parent b65f57f commit 1f006e2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: xet-core CI

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build_and_test:
runs-on:
group: cpu-high
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust 1.79
uses: dtolnay/[email protected]
with:
components: clippy
- name: Install protoc compiler
run: |
sudo apt-get install unzip
cd $HOME
curl https://github.com/protocolbuffers/protobuf/releases/download/v23.1/protoc-23.1-linux-x86_64.zip -L -o protoc.zip
unzip protoc.zip -d .protoc
rm protoc.zip
echo "PATH=$HOME/.protoc/bin:$PATH" >> $GITHUB_ENV
- name: Lint
run: |
cargo clippy -r --verbose -- -D warnings # elevates warnings to errors
- name: Build and Test
run: |
cargo test --verbose --no-fail-fast --features "strict"
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ sorted-vec = "0.8.0"
bincode = "1.3.3"
enum_dispatch = "0.3.8"
lru = "0.12"
intaglio = "1.8.0, <1.9.0"
walkdir = "2"
filetime = "0.2"
ctrlc = "3"
Expand Down

0 comments on commit 1f006e2

Please sign in to comment.