Skip to content

Commit 6b63f48

Browse files
authored
fix(CI): setup Python
1 parent 4b72175 commit 6b63f48

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ jobs:
7474
container: ${{ (matrix.os == 'ubuntu-22.04' && 'ubuntu:20.04') || null }} # Use the Ubuntu 20.04 container inside Ubuntu 22.04 runner to build
7575
steps:
7676
- uses: actions/checkout@v4
77-
- uses: actions/setup-python@v5
78-
with:
79-
python-version: ${{ matrix.python_version }}
8077
- name: Read the mozilla-central commit hash to be used
8178
run: echo "MOZCENTRAL_VERSION=$(cat mozcentral.version)" >> $GITHUB_ENV
8279
- name: Cache spidermonkey build
@@ -88,12 +85,16 @@ jobs:
8885
key: spidermonkey-${{ env.MOZCENTRAL_VERSION }}-${{ runner.os }}-${{ runner.arch }}
8986
lookup-only: true # skip download
9087
- name: Setup container
91-
if: ${{ matrix.os == 'ubuntu-22.04' }}
88+
if: ${{ matrix.os == 'ubuntu-22.04' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
9289
run: |
9390
apt-get update -y
9491
apt-get install -y sudo
9592
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
9693
echo "RUNNER_TOOL_CACHE=/" >> $GITHUB_ENV # do not use the Python installation cached for Ubuntu 22.04
94+
- uses: actions/setup-python@v5
95+
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
96+
with:
97+
python-version: ${{ matrix.python_version }}
9798
- name: Setup XCode
9899
if: ${{ matrix.os == 'macos-13' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
99100
# SpiderMonkey requires XCode SDK version at least 13.3

0 commit comments

Comments
 (0)