Skip to content

Commit

Permalink
manually setup python for arm64 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Nov 10, 2023
1 parent 78072b3 commit e99a1a7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,26 @@ jobs:
- uses: actions/checkout@v3

# actions/setup-python doesn't yet support ARM
- if: ${{ !endsWith(matrix.runner, '-arm64') }}
- name: Setup Python on x64
if: ${{ !endsWith(matrix.runner, '-arm64') }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
- if: ${{ endsWith(matrix.runner, '-arm64') }}

- name: Setup Python on arm64
if: ${{ endsWith(matrix.runner, '-arm64') }}
run: |
sudo apt update -y
sudo apt install python3.11 -y
sudo apt install python3.11-venv -y
python3.11 -m venv .venv
source .venv/bin/activate
- name: Check python version
run: |
python --version
python3 --version
which python
- name: Install dependencies
run: |
Expand Down

0 comments on commit e99a1a7

Please sign in to comment.