ci initial setup #1
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "4.2" | |
- name: Install JS dependencies | |
working-directory: wasm_bindings | |
run: npm ci | |
- name: Install Python deps | |
working-directory: python_bindings | |
run: pip install --upgrade maturin | |
- name: Install R deps | |
run: | | |
Rscript -e 'install.packages(c("devtools","rextendr"), repos="https://cloud.r-project.org")' | |
- name: Build all components | |
run: make all | |
- name: Run full test suite | |
run: make test |