@@ -3,26 +3,28 @@ on: [push, pull_request]
3
3
jobs :
4
4
linuxbrew :
5
5
runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ python : ["3.8", "3.9", "3.10", "3.11"]
6
9
steps :
7
10
- uses : actions/checkout@v3
8
- - name : Setup Python
9
- uses : actions/setup-python@v4
10
- with :
11
- python-version : ${{ matrix.python }}
12
- - name : Install build dependencies
11
+ - name : Install brew
13
12
run : |
14
13
sudo apt install -y build-essential procps curl file git
15
14
/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
15
+ echo "/home/ linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
16
+ - name : Install build dependencies
17
+ run : |
19
18
brew update
20
- brew install python gcc libxml2 libxmlsec1 pkg-config
19
+ brew install python@${{ matrix.python }} gcc libxml2 libxmlsec1 pkg-config
20
+ echo "/home/linuxbrew/.linuxbrew/opt/python@${{ matrix.python }}/libexec/bin" >> $GITHUB_PATH
21
+ - name : Install python dependencies
22
+ run : |
21
23
pip3 install --upgrade setuptools wheel build
22
- ln -s $(brew --prefix)/bin/gcc-12 $(brew --prefix)/bin/gcc-5
23
- ls -l $(brew --prefix)/bin/gcc*
24
24
- name : Build linux_x86_64 wheel
25
25
run : |
26
+ export CFLAGS="-I$(brew --prefix)/include"
27
+ export LDFLAGS="-L$(brew --prefix)/lib"
26
28
python3 -m build
27
29
rm -rf build/
28
30
- name : Install test dependencies
0 commit comments