Skip to content

Commit

Permalink
modernize the hosted actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsnolde committed Aug 20, 2023
1 parent c140205 commit 1e55514
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
platform: windows

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Cache Conan
id: cache-conan
uses: actions/cache@v2
uses: actions/cache@v3
if: matrix.platform == 'windows'
with:
path: |
Expand All @@ -45,14 +45,14 @@ jobs:
if: matrix.platform == 'windows' && steps.cache-conan.outputs.cache-hit != 'true'
run: |
pip install pip --upgrade
pip install conan==1.59.0
pip install conan<2.0.0
conan profile new default --detect
conan profile update "settings.compiler=Visual Studio" default
conan profile update "settings.compiler.version=17" default
conan config set "storage.path=$env:GITHUB_WORKSPACE/conan_data"
conan install --build=openssl --install-folder conan_build .
- uses: pypa/cibuildwheel@v2.3.1
- uses: pypa/cibuildwheel@v2.15.0
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
CIBW_BUILD: '*cp37*'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: "actions/setup-python@v2"
- uses: actions/setup-python@v4
with:
python-version: "3.7"

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
platform: windows

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Cache Conan
id: cache-conan
uses: actions/cache@v2
uses: actions/cache@v3
if: matrix.platform == 'windows'
with:
path: |
Expand All @@ -54,7 +54,7 @@ jobs:
key: conan-${{ matrix.image }}-${{ hashFiles('conanfile.txt') }}

- name: Configure Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
if: matrix.platform == 'windows' && steps.cache-conan.outputs.cache-hit != 'true'
with:
python-version: '3.x'
Expand All @@ -63,14 +63,14 @@ jobs:
if: matrix.image == 'windows-latest' && steps.cache-conan.outputs.cache-hit != 'true'
run: |
pip install pip --upgrade
pip install conan==1.59.0
pip install conan<2.0.0
conan profile new default --detect
conan profile update "settings.compiler=Visual Studio" default
conan profile update "settings.compiler.version=17" default
conan config set "storage.path=$env:GITHUB_WORKSPACE/conan_data"
conan install --build=openssl --install-folder conan_build .
- uses: pypa/cibuildwheel@v2.12.0
- uses: pypa/cibuildwheel@v2.15.0
env:
MACOSX_DEPLOYMENT_TARGET: 10.14

Expand All @@ -79,7 +79,7 @@ jobs:
shell: bash

- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

Expand All @@ -91,12 +91,12 @@ jobs:
steps:
- uses: actions/setup-python@v2

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.4.2
- uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: jonathf
password: ${{ secrets.pypi_password }}

0 comments on commit 1e55514

Please sign in to comment.