Update README.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: | |
- main # Adjust the branch as needed | |
pull_request: | |
branches: | |
- main # Adjust the branch as needed | |
jobs: | |
build: | |
runs-on: ubuntu-latest # You can change the OS as needed | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Choose the Python version you need | |
- name: Install Maturin | |
run: | | |
python3 -m pip install maturin[patchelf] | |
- name: Install OpenSSL development headers | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libssl-dev # OpenSSL development headers for Ubuntu | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
- name: Create virtual environment | |
run: | | |
python3 -m venv venv | |
. venv/bin/activate | |
- name: Install project dependencies | |
run: | | |
pip install maturin # Replace with the path to your requirements file if exists | |
- name: Build with Maturin | |
run: | | |
maturin build --release |