Add experimental Apple Silicon support (#35) #100
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: Component Detection | |
on: | |
workflow_dispatch: | |
push: | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
dependency-submission: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10.12' | |
- name: generate requirements.txt | |
run: | | |
export PipReportOverrideBehavior="SourceCodeScan" | |
echo $PipReportOverrideBehavior | |
pip install --upgrade pip | |
pip --version | |
which pip | |
pip install uv | |
uv venv .venv --python 3.10 && source .venv/bin/activate | |
uv pip compile pyproject.toml -o requirements.txt | |
# too.uv.sources information is ignored by the pip compile command, manually add the individual URLs to the wheels for torch. | |
# See https://github.com/astral-sh/uv/issues/8846 | |
sed -i 's|torch==2.2.1+cu118|torch @ https://download.pytorch.org/whl/cu118/torch-2.2.1%2Bcu118-cp310-cp310-linux_x86_64.whl#sha256=438668ad1eec3a7d1a0473ebf8b60f4557e51548d6be0497d32cc6c3a26a1945|g' requirements.txt | |
sed -i 's|torchaudio==2.2.1+cu118|torchaudio @ https://download.pytorch.org/whl/cu118/torchaudio-2.2.1%2Bcu118-cp310-cp310-linux_x86_64.whl#sha256=734db8030b3c5ff6bb4135b0d0a9eec79690900c5b5edd259f230b02d6fbcb04|g' requirements.txt | |
sed -i 's|torchvision==0.17.1+cu118|torchvision @ https://download.pytorch.org/whl/cu118/torchvision-0.17.1%2Bcu118-cp310-cp310-linux_x86_64.whl#sha256=dfe27be6328d85300ba9c2f3862993841c41a0daa4b4ba99c22e9fd509a21e2f|g' requirements.txt | |
- name: Component detection | |
uses: advanced-security/[email protected] |