Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-111062: Separate linux build into a reusable workflow #111446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disabled additional test
  • Loading branch information
NCLI committed Oct 29, 2023
commit 0ad8938ca67809049f73c805c44c995d7d3eb7ba
102 changes: 51 additions & 51 deletions 102 .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,57 +126,57 @@ jobs:
if: needs.check_source.outputs.run_tests == 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Restore config.cache
uses: actions/cache@v3
with:
path: config.cache
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
- name: Install Dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
- name: Add ccache to PATH
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
- name: Configure ccache action
uses: hendrikmuhs/ccache-action@v1.2
- name: Check Autoconf and aclocal versions
run: |
grep "Generated by GNU Autoconf 2.71" configure
grep "aclocal 1.16.4" aclocal.m4
grep -q "runstatedir" configure
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
- name: Configure CPython
run: |
# Build Python with the libpython dynamic library
./configure --config-cache --with-pydebug --enable-shared
- name: Regenerate autoconf files with container image
run: make regen-configure
- name: Build CPython
run: |
make -j4 regen-all
make regen-stdlib-module-names
- name: Check for changes
run: |
git add -u
changes=$(git status --porcelain)
# Check for changes in regenerated files
if test -n "$changes"; then
echo "Generated files not up to date."
echo "Perhaps you forgot to run make regen-all or build.bat --regen. ;)"
echo "configure files must be regenerated with a specific version of autoconf."
echo "$changes"
echo ""
git diff --staged || true
exit 1
fi
- name: Check exported libpython symbols
run: make smelly
- name: Check limited ABI symbols
run: make check-limited-abi
- name: Check for unsupported C global variables
if: github.event_name == 'pull_request' # $GITHUB_EVENT_NAME
run: make check-c-globals
# - uses: actions/setup-python@v4
# with:
# python-version: '3.x'
# - name: Restore config.cache
# uses: actions/cache@v3
# with:
# path: config.cache
# key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }}
# - name: Install Dependencies
# run: sudo ./.github/workflows/posix-deps-apt.sh
# - name: Add ccache to PATH
# run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
# - name: Configure ccache action
# uses: hendrikmuhs/ccache-action@v1.2
# - name: Check Autoconf and aclocal versions
# run: |
# grep "Generated by GNU Autoconf 2.71" configure
# grep "aclocal 1.16.4" aclocal.m4
# grep -q "runstatedir" configure
# grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
# - name: Configure CPython
# run: |
# # Build Python with the libpython dynamic library
# ./configure --config-cache --with-pydebug --enable-shared
# - name: Regenerate autoconf files with container image
# run: make regen-configure
# - name: Build CPython
# run: |
# make -j4 regen-all
# make regen-stdlib-module-names
# - name: Check for changes
# run: |
# git add -u
# changes=$(git status --porcelain)
# # Check for changes in regenerated files
# if test -n "$changes"; then
# echo "Generated files not up to date."
# echo "Perhaps you forgot to run make regen-all or build.bat --regen. ;)"
# echo "configure files must be regenerated with a specific version of autoconf."
# echo "$changes"
# echo ""
# git diff --staged || true
# exit 1
# fi
# - name: Check exported libpython symbols
# run: make smelly
# - name: Check limited ABI symbols
# run: make check-limited-abi
# - name: Check for unsupported C global variables
# if: github.event_name == 'pull_request' # $GITHUB_EVENT_NAME
# run: make check-c-globals

build_win32:
name: 'Windows (x86)'
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.