Skip to content

Commit

Permalink
Try it on macOS, unpin version (trust Mozilla).
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Nov 28, 2024
1 parent 1084929 commit dff0249
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/reusable-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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" \
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/reusable-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dff0249

Please sign in to comment.