-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.4 KB
/
Install.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
47
48
49
50
51
52
53
54
55
56
57
name: Installation
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust Toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > install-rust.sh
sh install-rust.sh -q -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create and Activate Python Virtual Environment
run: |
python -m venv AISdb
source ./AISdb/bin/activate
- name: Install Maturin
run: python -m pip install --upgrade maturin[patchelf]
- name: Install wasm-pack
run: |
cargo install --locked wasm-pack --verbose
cargo install --locked wasm-bindgen-cli --verbose
cargo install --locked wasm-opt --verbose
wasm-pack --version
- name: Build and Install aisdb
run: |
source ./AISdb/bin/activate
maturin develop --release --extras=test,docs
- name: Verify Installation
run: |
source ./AISdb/bin/activate
python -c "import aisdb; assert aisdb.__version__ >= '1.7.1', f'Unexpected aisdb version: {aisdb.__version__}'"