diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..1276e8349 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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/rust-toolchain@1.79.0 + 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" diff --git a/Cargo.lock b/Cargo.lock index 62256563f..d829677b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -868,7 +868,6 @@ dependencies = [ "hex", "http 0.2.12", "humantime", - "intaglio", "is_executable", "itertools 0.10.5", "lazy_static", @@ -1802,12 +1801,6 @@ dependencies = [ "cfg-if 1.0.0", ] -[[package]] -name = "intaglio" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b4f756a47a2dac507018af2d4e47988e93829f34a665da3655b23cc1d21ee47" - [[package]] name = "integer-encoding" version = "3.0.4" diff --git a/data/Cargo.toml b/data/Cargo.toml index 0ce655348..193504646 100644 --- a/data/Cargo.toml +++ b/data/Cargo.toml @@ -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"