From dff0249003c4abf094e910e5189b20126fac9161 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Thu, 28 Nov 2024 14:38:38 -0800 Subject: [PATCH] Try it on macOS, unpin version (trust Mozilla). --- .github/workflows/build.yml | 14 ++++++-------- .github/workflows/reusable-macos.yml | 7 +++++++ .github/workflows/reusable-ubuntu.yml | 10 ++++------ 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bf860d1f323d0..5ceecf9a545019 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,14 +101,6 @@ jobs: python-version: '3.x' - name: Runner image version run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV" - - name: Run sccache-cache - uses: mozilla-actions/sccache-action@v0.0.6 - with: - version: "v0.8.2" - - name: Configure CC and CXX environment variables - run: | - echo "CC=sccache gcc" >> "$GITHUB_ENV" - echo "CXX=sccache gcc" >> "$GITHUB_ENV" - name: Restore config.cache uses: actions/cache@v4 with: @@ -117,6 +109,12 @@ jobs: key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}-${{ env.pythonLocation }} - name: Install Dependencies run: sudo ./.github/workflows/posix-deps-apt.sh + - name: Start sccache-cache + uses: mozilla-actions/sccache-action@v0.0.6 + - name: Configure CC and CXX environment variables + run: | + echo "CC=sccache gcc" >> "$GITHUB_ENV" + echo "CXX=sccache gcc" >> "$GITHUB_ENV" - name: Configure CPython run: | # Build Python with the libpython dynamic library diff --git a/.github/workflows/reusable-macos.yml b/.github/workflows/reusable-macos.yml index 4c3dd10194f8cb..e2ae7d333af5e4 100644 --- a/.github/workflows/reusable-macos.yml +++ b/.github/workflows/reusable-macos.yml @@ -25,6 +25,7 @@ jobs: HOMEBREW_NO_INSTALL_CLEANUP: 1 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 PYTHONSTRICTEXTENSIONBUILD: 1 + SCCACHE_GHA_ENABLED: "true" TERM: linux runs-on: ${{ inputs.os }} steps: @@ -41,6 +42,12 @@ jobs: brew install pkg-config openssl@3.0 xz gdbm tcl-tk@8 make # Because alternate versions are not symlinked into place by default: brew link tcl-tk@8 + - name: Start sccache-cache + uses: mozilla-actions/sccache-action@v0.0.6 + - name: Configure CC and CXX environment variables + run: | + echo "CC=sccache clang" >> "$GITHUB_ENV" + echo "CXX=sccache clang" >> "$GITHUB_ENV" - name: Configure CPython run: | GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ diff --git a/.github/workflows/reusable-ubuntu.yml b/.github/workflows/reusable-ubuntu.yml index 43b58e6fac6534..b9bcd7c285ec93 100644 --- a/.github/workflows/reusable-ubuntu.yml +++ b/.github/workflows/reusable-ubuntu.yml @@ -25,22 +25,20 @@ jobs: FORCE_COLOR: 1 OPENSSL_VER: 3.0.15 PYTHONSTRICTEXTENSIONBUILD: 1 - TERM: linux SCCACHE_GHA_ENABLED: "true" + TERM: linux steps: - uses: actions/checkout@v4 - name: Register gcc problem matcher run: echo "::add-matcher::.github/problem-matchers/gcc.json" - - name: Run sccache-cache + - name: Install dependencies + run: sudo ./.github/workflows/posix-deps-apt.sh + - name: Start sccache-cache uses: mozilla-actions/sccache-action@v0.0.6 - with: - version: "v0.8.2" - name: Configure CC and CXX environment variables run: | echo "CC=sccache gcc" >> "$GITHUB_ENV" echo "CXX=sccache gcc" >> "$GITHUB_ENV" - - name: Install dependencies - run: sudo ./.github/workflows/posix-deps-apt.sh - name: Configure OpenSSL env vars run: | echo "MULTISSL_DIR=${GITHUB_WORKSPACE}/multissl" >> "$GITHUB_ENV"