-
Notifications
You must be signed in to change notification settings - Fork 94
44 lines (39 loc) · 1.13 KB
/
build.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
name: Build
on:
push:
branches: [ 'dev-v3' ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# os: [ubuntu-latest, macos-latest]
# os: [ubuntu-20.04]
os: [macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Check system platform
run: python -c "import sys; print(sys.platform)"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade -r build/resources/require.txt
- name: Install OS-specific dependencies
if: runner.os == 'Windows'
run: python -m pip install pypiwin32 cx_Logging
- name: Build the NCPA binaries
run: |
python setup.py build_exe
pwd
../build/build_github.sh
working-directory: agent
- name: Upload ${{ matrix.os }} artifact
uses: actions/upload-artifact@v2
with:
name: NCPA-3.0.0-${{ matrix.os }}
path: build/ncpa_3.0.0-*.*