Skip to content

Commit

Permalink
fix: Install Python 3.10 to fix issues with node-gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivshah3 committed Nov 24, 2022
1 parent 0f286fc commit 292aa14
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ jobs:
with:
node-version: '14.x'

# Temporary fix for "ValueError: invalid mode: 'rU' while trying to load binding.gyp"
# See <PR link>
# This can be removed when "prebuild" updates "node-gyp"
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Get current date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -351,4 +359,4 @@ jobs:
working-directory: bindings/java/iota-wallet-java/
run: |
chmod +x gradlew
./gradlew test -i
./gradlew test -i
8 changes: 8 additions & 0 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

# Temporary fix for "ValueError: invalid mode: 'rU' while trying to load binding.gyp"
# See <PR link>
# This can be removed when "prebuild" updates "node-gyp"
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit 292aa14

Please sign in to comment.