-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 850 Bytes
/
Copy pathci.yml
File metadata and controls
43 lines (34 loc) · 850 Bytes
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
---
name: Python build
# Controls when the action will run. Triggers the workflow on:
# * push on any branch.
# * tag creation for tags beginning with a 'v'
# * pull requests
on:
push:
branches: ["*"]
tags: ["v*"]
pull_request:
types: [opened, reopened, synchronize]
branches: ["*"]
jobs:
build-package:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- name: Obtain prerequisite build tool
run: |
pip install 'capstone<5'
- name: Run tests
run: |
make tests
- name: Build package
if: github.ref == 'refs/heads/master'
run: |
make package
- uses: actions/upload-artifact@v7
if: github.ref == 'refs/heads/master'
with:
name: Package
path: dist