Skip to content

Commit 95ed6fd

Browse files
committed
add linuxbrew build
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
1 parent cd7ca85 commit 95ed6fd

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/linuxbrew.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: linuxbrew
2+
on: [push, pull_request]
3+
jobs:
4+
linuxbrew:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- name: Setup Python
9+
uses: actions/setup-python@v2
10+
with:
11+
python-version: ${{ matrix.python }}
12+
- name: Install build dependencies
13+
run: |
14+
sudo apt install -y build-essential procps curl file git
15+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
16+
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
17+
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
18+
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
19+
brew update
20+
brew install python gcc libxml2 libxmlsec1 pkg-config
21+
pip3 install --upgrade setuptools wheel
22+
ln -s $(brew --prefix)/bin/gcc-11 $(brew --prefix)/bin/gcc-5
23+
- name: Build linux_x86_64 wheel
24+
run: |
25+
python3 setup.py bdist_wheel
26+
rm -rf build/
27+
- name: Install test dependencies
28+
run: |
29+
pip3 install --upgrade -r requirements-test.txt
30+
pip3 install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
31+
- name: Run tests
32+
run: |
33+
pytest -v --color=yes

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ python-xmlsec
1111
:target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22manylinux2010%22
1212
.. image:: https://github.com/mehcode/python-xmlsec/workflows/MacOS/badge.svg
1313
:target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22MacOS%22
14+
.. image:: https://github.com/mehcode/python-xmlsec/workflows/linuxbrew/badge.svg
15+
:target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22linuxbrew%22
1416
.. image:: https://codecov.io/gh/mehcode/python-xmlsec/branch/master/graph/badge.svg
1517
:target: https://codecov.io/gh/mehcode/python-xmlsec
1618
.. image:: https://img.shields.io/readthedocs/xmlsec/latest?logo=read-the-docs

0 commit comments

Comments
 (0)