File tree Expand file tree Collapse file tree 1 file changed +13
-32
lines changed Expand file tree Collapse file tree 1 file changed +13
-32
lines changed Original file line number Diff line number Diff line change 1- name : Test pip cache
1+ name : Check System Architecture
22
33on :
44 workflow_dispatch :
55 push :
66
77jobs :
88 test-cache :
9- runs-on : ubuntu-latest
10-
11-
9+ runs-on : ${{ matrix.os }}
10+ strategy :
11+ matrix :
12+ os : [ubuntu-24.04-arm, windows-11-arm]
1213 steps :
13- - name : Checkout repository
14- uses : actions/checkout@v4
15-
16- - name : Set up Python
17- id : python
18- uses : priyagupta108/setup-python@pip-version-input
19- with :
20- python-version : ' 3.11'
21- pip-version : ' 23.2.1'
22- update-environment : false
23-
24- - name : Check pip version
25- run : pip --version
26-
27- - name : Cache pip dependencies
28- uses : actions/cache@v4
29- with :
30- path : ~/.cache/pip
31- key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
32- restore-keys : |
33- ${{ runner.os }}-pip-
34-
35-
36- # - run: pip install -r requirements.txt
37-
38-
39-
40-
14+ - name : Check System Architecture
15+ shell : bash
16+ run : |
17+ echo "Python platform.machine(): $(python -c 'import platform; print(platform.machine())')"
18+ echo "Python platform.architecture(): $(python -c 'import platform; print(platform.architecture())')"
19+ echo "Python platform.processor(): $(python -c 'import platform; print(platform.processor())')"
20+ echo "PowerShell \$env:PROCESSOR_ARCHITECTURE: $PROCESSOR_ARCHITECTURE"
21+ echo "PowerShell \$env:PROCESSOR_IDENTIFIER: $PROCESSOR_IDENTIFIER"
You can’t perform that action at this time.
0 commit comments