Skip to content

Setup CI

Setup CI #7

Workflow file for this run

name: Development CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
contents: read
checks: write
steps:
############ Setup ############
- name: Repo checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.77.0
components: clippy
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
token: ${{ secrets.GITHUB_TOKEN }}
############ Install executorch deps ############
- name: Setup dev env, install executorch and its deps
run: python scripts/setup_dev.py
############ Build executorch-rs ############
- name: Build
run: cargo build
############ Linters ############
# - name: Rust Clippy linter
# uses: auguwu/clippy-action@1.4.0
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
############ Tests ############
- name: Run Rust tests
run: cargo test
############ Examples ############
- name: Run 'hello world add' example
run: cargo run
working-directory: examples/hello_world_add