-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (41 loc) · 1.3 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
- refs/tags/*
pull_request:
branches:
- '*' # must quote since "*" is a YAML reserved character; we want a string
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: Stable Build and Test
# Make sure CI fails on all warnings, including Clippy lints
env:
RELEASES_URL: "https://github.com/TileDB-Inc/TileDB/releases/download"
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install TileDB
run: |
set -e pipefail
mkdir -p /opt/tiledb
cd /opt/tiledb
wget -q ${RELEASES_URL}/2.21.0/tiledb-linux-x86_64-2.21.0-0ea9c13.tar.gz
wget -q ${RELEASES_URL}/2.21.0/tiledb-linux-x86_64-2.21.0-0ea9c13.tar.gz.sha256
sha256sum tiledb*.sha256
tar -C /opt/tiledb -xzf tiledb*.tar.gz
- name: Check Formatting
run: cargo fmt --quiet --check
- name: Lint
run: cargo clippy --all-targets --all-features -- -Dwarnings
- name: Build
run: cargo build --all-targets --all-features
- name: Test
run: cargo test --all-targets --all-features