fix: fix macOS build #116
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
on: push | |
name: CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.repository.name }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Use Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
target: x86_64-unknown-linux-gnu | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Node modules cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
- name: Use Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Cached pip | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: ${{ runner.os }}-venv-3_10 | |
- name: Install python dependencies | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
./executorch/install_requirements.sh | |
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH | |
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: yarn install | |
- name: Minimal Build | |
run: yarn debug | |
- name: Run tests | |
run: yarn test-all |