From 22d0e277ef7117f865353082c4d8603f8399dcf9 Mon Sep 17 00:00:00 2001 From: SpacingBat3 Date: Fri, 3 May 2024 00:59:26 +0200 Subject: [PATCH] Update actions for newer macOS runners. --- .github/workflows/build.yml | 10 ++++++++-- .github/workflows/prerelease.yml | 10 ++++++++-- .github/workflows/release.yml | 10 ++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce99bb20..cd9cff58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,8 +86,14 @@ jobs: node-version: latest cache: npm - - name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }}) - run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci + - name: Lock Python version (macOS only) + if: ${{ matrix.runner == 'macos-latest' || matrix.runner == 'macos-14' }} + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies (NPM) + run: npm ci - name: Update dependencies if: ${{ matrix.build == 'latest' }} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index c2f7d749..43338d06 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -36,8 +36,14 @@ jobs: node-version: latest cache: npm - - name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }}) - run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci + - name: Lock Python version (macOS only) + if: ${{ matrix.runner == 'macos-latest' || matrix.runner == 'macos-14' }} + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies (NPM) + run: npm ci - name: TSC cache uses: actions/cache@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f888e3d..1ec8e171 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,14 @@ jobs: node-version: latest cache: npm - - name: Install dependencies (NPM${{ matrix.name == 'macOS' && '+PIP' || '' }}) - run: ${{ matrix.runner == 'macos-latest' && 'python -m pip install setuptools &&' || '' }} npm ci + - name: Lock Python version (macOS only) + if: ${{ matrix.runner == 'macos-latest' || matrix.runner == 'macos-14' }} + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies (NPM) + run: npm ci - name: TSC cache uses: actions/cache@v3