-
Notifications
You must be signed in to change notification settings - Fork 515
69 lines (56 loc) · 1.57 KB
/
pkg_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Machine Setup Testing
on:
push:
branches:
- "setup-action"
jobs:
setup_apple_silicon:
runs-on: macos-13-large # M1
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.10.6
uses: actions/setup-python@v2
with:
python-version: '3.10.6'
- name: Check architecture
run: |
if [[ $(uname -m) == 'arm64' ]]; then
echo "Runner is ARM architecture (Apple Silicon)"
else
echo "Runner is NOT ARM architecture"
exit 1
fi
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install dependencies for Apple Silicon machine
run: |
pip install -r ./specs/releases/apple_silicon.txt
setup_apple_intel:
runs-on: macos-12 # Latest intel
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.10.6
uses: actions/setup-python@v2
with:
python-version: '3.10.6'
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install dependencies for Apple Intel machine
run: |
pip install -r ./specs/releases/apple_intel.txt
setup_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.10.6
uses: actions/setup-python@v2
with:
python-version: '3.10.6'
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install dependencies for Linux machine
run: |
pip install -r ./specs/releases/linux.txt