Skip to content

Commit dc01b37

Browse files
author
Gal Ben David
committed
- divided build to two workflows: build and deploy
- module compilation strip was added to minimize the binary size
1 parent eb2f0eb commit dc01b37

File tree

4 files changed

+47
-40
lines changed

4 files changed

+47
-40
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
7+
runs-on: ubuntu-20.04
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, pypy3]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install Ubuntu packages
19+
run: >-
20+
sudo apt install libre2-dev libgit2-dev;
21+
- name: Test module
22+
run: >-
23+
python setup.py test

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Set up Python 3.8
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: 3.8
15+
- name: Build a source tarball
16+
run: >-
17+
python -m pip install --user --upgrade setuptools;
18+
python setup.py sdist;
19+
- name: Publish distribution 📦 to PyPI
20+
uses: pypa/gh-action-pypi-publish@master
21+
with:
22+
password: ${{ secrets.pypi_password }}

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name='PyRepScan',
8-
version='0.6.0',
8+
version='0.6.1',
99
author='Gal Ben David',
1010
author_email='[email protected]',
1111
url='https://github.com/intsights/PyRepScan',
@@ -52,6 +52,7 @@
5252
'-lre2',
5353
'-lgit2',
5454
'-lpthread',
55+
'-Wl,--strip-all',
5556
],
5657
include_dirs=[
5758
'src',

0 commit comments

Comments
 (0)