-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid building package during dependencies installation
- Loading branch information
Showing
2 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,13 +40,23 @@ jobs: | |
arch: "x64" | ||
env: true | ||
|
||
- if: matrix.os == 'ubuntu-24.04' | ||
name: Install dependencies | ||
run: sudo apt-get install libtinfo5 | ||
|
||
- if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04' | ||
name: Set CXXFLAGS | ||
run: export CXXFLAGS="-stdlib=libc++" | ||
- if: startsWith(matrix.os, 'ubuntu') | ||
name: Install Python dependencies | ||
run: | | ||
sudo add-apt-repository universe | ||
sudo add-apt-repository restricted | ||
sudo add-apt-repository multiverse | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \ | ||
libreadline-dev libsqlite3-dev wget curl llvm \ | ||
libncurses5-dev libncursesw5-dev xz-utils tk-dev \ | ||
libffi-dev liblzma-dev python3-openssl git libtinfo5 | ||
export CXXFLAGS="-stdlib=libc++" | ||
- if: startsWith(matrix.os, 'windows') | ||
name: Install Python dependencies | ||
run: | | ||
chcp 65001 #set code page to utf-8 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
|
@@ -57,13 +67,13 @@ jobs: | |
- name: Install Poetry | ||
run: pip install poetry==1.8.3 | ||
|
||
- name: Install Python dependencies | ||
run: poetry install --no-cache --sync | ||
- name: Install project dependencies | ||
run: poetry install --no-cache --sync --no-root | ||
|
||
- name: Build distribution package | ||
run: poetry build --format wheel | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-${{ matrix.os }}-${{ matrix.python-version }} | ||
name: build-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: ./dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters