Skip to content
Snippets Groups Projects
Commit daef442c authored by tqtg's avatar tqtg
Browse files

use ubuntu-18.04 CI image for better compatibility

parent fa10127f
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ on: ...@@ -12,7 +12,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
......
...@@ -18,7 +18,7 @@ jobs: ...@@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-18.04, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9] python-version: [3.6, 3.7, 3.8, 3.9]
steps: steps:
...@@ -48,7 +48,7 @@ jobs: ...@@ -48,7 +48,7 @@ jobs:
run: python setup.py bdist_wheel run: python setup.py bdist_wheel
- name: Rename Linux wheels to supported platform of PyPI - name: Rename Linux wheels to supported platform of PyPI
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-18.04'
run: for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done run: for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done
- name: Publish wheels to GitHub artifacts - name: Publish wheels to GitHub artifacts
...@@ -60,7 +60,7 @@ jobs: ...@@ -60,7 +60,7 @@ jobs:
publish-pypi: publish-pypi:
needs: [build-wheels] needs: [build-wheels]
runs-on: ubuntu-latest runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment