Skip to content

Commit 74a1ef1

Browse files
Create build.yml
1 parent 5c965f0 commit 74a1ef1

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install build the library.
2+
3+
name: Build
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
python: ["3.10"]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python }}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install --upgrade build
30+
- name: Build
31+
if: ${{ matrix.os == 'windows-latest' }}
32+
run: |
33+
py -m build
34+
- name: Build
35+
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
36+
run: |
37+
python3 -m build

0 commit comments

Comments
 (0)