mirror of
https://github.com/python/cpython
synced 2024-10-14 08:41:09 +00:00
GH-113858: GitHub Actions config: Only save ccache on pushes (GH-113859)
This commit is contained in:
parent
4826d52338
commit
5d384b0468
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -142,6 +142,8 @@ jobs:
|
||||||
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
- name: Configure ccache action
|
- name: Configure ccache action
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
save: ${{ github.event_name == 'push' }}
|
||||||
- name: Check Autoconf and aclocal versions
|
- name: Check Autoconf and aclocal versions
|
||||||
run: |
|
run: |
|
||||||
grep "Generated by GNU Autoconf 2.71" configure
|
grep "Generated by GNU Autoconf 2.71" configure
|
||||||
|
@ -284,6 +286,8 @@ jobs:
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
- name: Configure ccache action
|
- name: Configure ccache action
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
save: ${{ github.event_name == 'push' }}
|
||||||
- name: Configure CPython
|
- name: Configure CPython
|
||||||
run: ./configure --config-cache --with-pydebug --with-openssl=$OPENSSL_DIR
|
run: ./configure --config-cache --with-pydebug --with-openssl=$OPENSSL_DIR
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
|
@ -327,6 +331,8 @@ jobs:
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
- name: Configure ccache action
|
- name: Configure ccache action
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
save: ${{ github.event_name == 'push' }}
|
||||||
- name: Setup directory envs for out-of-tree builds
|
- name: Setup directory envs for out-of-tree builds
|
||||||
run: |
|
run: |
|
||||||
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
|
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
|
||||||
|
@ -446,6 +452,8 @@ jobs:
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
- name: Configure ccache action
|
- name: Configure ccache action
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
save: ${{ github.event_name == 'push' }}
|
||||||
- name: Configure CPython
|
- name: Configure CPython
|
||||||
run: ./configure --config-cache --with-address-sanitizer --without-pymalloc
|
run: ./configure --config-cache --with-address-sanitizer --without-pymalloc
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
|
|
2
.github/workflows/reusable-ubuntu.yml
vendored
2
.github/workflows/reusable-ubuntu.yml
vendored
|
@ -41,6 +41,8 @@ jobs:
|
||||||
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||||||
- name: Configure ccache action
|
- name: Configure ccache action
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
save: ${{ github.event_name == 'push' }}
|
||||||
- name: Setup directory envs for out-of-tree builds
|
- name: Setup directory envs for out-of-tree builds
|
||||||
run: |
|
run: |
|
||||||
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
|
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Reference in a new issue