@@ -40,13 +40,49 @@ jobs:
40
40
arch : " x64"
41
41
env : true
42
42
43
- - if : matrix.os == 'ubuntu-24.04'
44
- name : Install dependencies
45
- run : sudo apt-get install libtinfo5
46
-
47
- - if : matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
48
- name : Set CXXFLAGS
49
- run : export CXXFLAGS="-stdlib=libc++"
43
+ - if : startsWith(matrix.os, 'ubuntu')
44
+ name : Install ubuntu specific dependencies
45
+ run : |
46
+ sudo add-apt-repository universe
47
+ sudo add-apt-repository restricted
48
+ sudo add-apt-repository multiverse
49
+ sudo apt-get update
50
+ sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
51
+ libreadline-dev libsqlite3-dev wget curl llvm \
52
+ libncurses5-dev libncursesw5-dev xz-utils tk-dev \
53
+ libffi-dev liblzma-dev python3-openssl git
54
+
55
+ - if : endsWith(matrix.os, '20.04')
56
+ name : Install ubuntu-20.04 specific dependencies
57
+ run : |
58
+ sudo apt-get install -y software-properties-common
59
+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
60
+ sudo apt-get update
61
+ sudo apt-get install -y libtinfo5
62
+ sudo apt install gcc-13 g++-13
63
+
64
+ - if : endsWith(matrix.os, '22.04')
65
+ name : Install ubuntu-22.04 specific dependencies
66
+ run : |
67
+ sudo apt-get install -y software-properties-common
68
+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
69
+ sudo apt-get update
70
+ sudo apt-get install -y libtinfo5
71
+ sudo apt install gcc-13 g++-13
72
+
73
+ - if : endsWith(matrix.os, '24.04')
74
+ name : Install ubuntu-24.04 specific dependencies
75
+ run : |
76
+ sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ jammy main"
77
+ sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ jammy universe"
78
+ sudo add-apt-repository "deb http://mirrors.kernel.org/ubuntu/ jammy multiverse"
79
+ sudo apt-get update
80
+ sudo apt-get install -y libtinfo5
81
+
82
+ - if : startsWith(matrix.os, 'windows')
83
+ name : Install Python dependencies
84
+ run : |
85
+ chcp 65001 #set code page to utf-8
50
86
51
87
- name : Set up Python ${{ matrix.python-version }}
52
88
@@ -57,13 +93,13 @@ jobs:
57
93
- name : Install Poetry
58
94
run : pip install poetry==1.8.3
59
95
60
- - name : Install Python dependencies
61
- run : poetry install --no-cache --sync
96
+ - name : Install project dependencies
97
+ run : poetry install --no-cache --sync --no-root
62
98
63
99
- name : Build distribution package
64
100
run : poetry build --format wheel
65
101
66
102
- uses : actions/upload-artifact@v4
67
103
with :
68
- name : build-${{ matrix.os }}-${{ matrix.python-version }}
104
+ name : build-${{ github.sha }}-${{ matrix.os }}-${{ matrix.python-version }}
69
105
path : ./dist/*
0 commit comments