Skip to content

Commit faace8f

Browse files
committed
- update action files
1 parent 0c07c82 commit faace8f

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/build-linux.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: build-linux
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
46

57
jobs:
68
build-ubuntu:
@@ -10,7 +12,7 @@ jobs:
1012
steps:
1113
- uses: actions/checkout@v1
1214
- name: apt-get update
13-
run: sudo apt-get update --fix-missing
15+
run: sudo apt-get update --fix-missing
1416
- name: Install packages
1517
run: sudo apt-get -y install xorg-dev freeglut3-dev
1618
- name: configure
@@ -24,7 +26,7 @@ jobs:
2426
strategy:
2527
matrix:
2628
# python-version: [3.7]
27-
python-version: [cp36-cp36m, cp37-cp37m, cp38-cp38]
29+
python-version: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310]
2830

2931
steps:
3032
- uses: actions/checkout@v1

.github/workflows/build-windows.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
name: build-windows
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
46

57
jobs:
68
build-windows:
79

810
runs-on: ${{ matrix.os }}
911
strategy:
1012
matrix:
11-
os: [windows-latest, windows-2016]
13+
os: [windows-latest]
1214

1315
steps:
16+
# Checkout repo
1417
- uses: actions/checkout@v1
18+
# Configure, build and test
1519
- name: configure
1620
run: mkdir build-release;cd build-release;cmake ..
1721
shell: pwsh
@@ -25,15 +29,15 @@ jobs:
2529
strategy:
2630
matrix:
2731
# python-version: [3.7]
28-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
32+
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
2933

3034
steps:
3135
# Checkout repo
3236
- uses: actions/checkout@v1
3337

3438
# Set up python
3539
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v1
40+
uses: actions/setup-python@v4
3741
with:
3842
python-version: ${{ matrix.python-version }}
3943

0 commit comments

Comments
 (0)