Skip to content

Commit

Permalink
Use actions/setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvanrijn committed Jan 12, 2025
1 parent 395e6dc commit ba25863
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,13 @@ jobs:
needs: artifacts
if: needs.artifacts.result == 'success'
steps:
- uses: actions/[email protected]
with:
python-version: '3.11'
- name: Build demjson
shell: bash
run: |
curl -sSo Python-3.11.11.tar.xz https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz
tar -xJf Python-3.11.11.tar.xz
cd Python-3.11.11
sudo ./configure --prefix=/opt/python/3.11.11/ --enable-optimizations --with-lto --with-computed-gotos --with-system-ffi
sudo make -j "$(nproc)"
sudo make altinstall
cd ..
rm Python-3.11.11.tar.xz
python -c "import sys; print(sys.version)"
curl -sSo pip.pyz https://bootstrap.pypa.io/pip/pip.pyz
python pip.pyz -V
python pip.pyz install setuptools==57.5.0
Expand Down Expand Up @@ -352,17 +348,13 @@ jobs:
needs: release
if: needs.release.result == 'success'
steps:
- uses: actions/[email protected]
with:
python-version: '3.11'
- name: Build demjson
shell: bash
run: |
curl -sSo Python-3.11.11.tar.xz https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz
tar -xJf Python-3.11.11.tar.xz
cd Python-3.11.11
sudo ./configure --prefix=/opt/python/3.11.11/ --enable-optimizations --with-lto --with-computed-gotos --with-system-ffi
sudo make -j "$(nproc)"
sudo make altinstall
cd ..
rm Python-3.11.11.tar.xz
python -c "import sys; print(sys.version)"
curl -sSo pip.pyz https://bootstrap.pypa.io/pip/pip.pyz
python pip.pyz -V
python pip.pyz install setuptools==57.5.0
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/jsonlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ jobs:
jsonlint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
python-version: '3.11'
- name: Build demjson
shell: bash
run: |
curl -sSo Python-3.11.11.tar.xz https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz
tar -xJf Python-3.11.11.tar.xz
cd Python-3.11.11
sudo ./configure --prefix=/opt/python/3.11.11/ --enable-optimizations --with-lto --with-computed-gotos --with-system-ffi
sudo make -j "$(nproc)"
sudo make altinstall
cd ..
rm Python-3.11.11.tar.xz
python -c "import sys; print(sys.version)"
curl -sSo pip.pyz https://bootstrap.pypa.io/pip/pip.pyz
python pip.pyz -V
python pip.pyz install setuptools==57.5.0
Expand Down

0 comments on commit ba25863

Please sign in to comment.