Skip to content

Commit 57ad2d2

Browse files
committed
Run tests on Linux and x86 Mac (#22)
Also, move to M1 mac (by adding macos-14 to the matrix), but right now it's blocked by pytorch/pytorch#123225 and pytorch/pytorch#122705 (though later is occluded by pipe redirect)
1 parent 96c1091 commit 57ad2d2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/compile.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,24 @@ on:
99

1010
jobs:
1111
run-tinystories:
12-
runs-on: macos-12
13-
# runs-on: self-hosted
12+
strategy:
13+
matrix:
14+
runner: [macos-12, ubuntu-latest]
15+
runs-on: ${{matrix.runner}}
1416
steps:
1517
- name: Checkout repo
1618
uses: actions/checkout@v2
1719
- name: Setup Python
1820
uses: actions/setup-python@v2
1921
with:
20-
python-version: 3.8
22+
python-version: 3.11
2123
- name: Print machine info
2224
run: |
2325
uname -a
24-
sysctl machdep.cpu.brand_string
25-
sysctl machdep.cpu.core_count
26+
if [ $(uname -s) == Darwin ]; then
27+
sysctl machdep.cpu.brand_string
28+
sysctl machdep.cpu.core_count
29+
fi
2630
- name: Install requirements
2731
run: |
2832
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu

0 commit comments

Comments
 (0)