forked from kendryte/caffe
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.19 KB
/
python-build.yml
File metadata and controls
51 lines (41 loc) · 1.19 KB
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
name: python-build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-18.04,windows-2019,macos-10.15]
os: [ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup Python
uses: actions/setup-python@v2.2.1
with:
python-version: 3.7
- name: Install cibuildwheel
run: pip install cibuildwheel
# - name: Install System Requirements
# if: runner.os == 'Macos'
# shell: bash
# run: |
# brew install sunnycase/core/libomp@11.1.0
# - name: Add msbuild to PATH
# if: runner.os == 'Windows'
# uses: ilammy/msvc-dev-cmd@v1.9.0
- name: Build wheel
run: python -m cibuildwheel --output-dir wheelhouse
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.2
with:
name: caffe-python
path: ${{github.workspace}}/wheelhouse
if-no-files-found: error