Skip to content

Commit bb76b51

Browse files
author
zhangyi
committed
update github actions versions
1 parent 35d18a9 commit bb76b51

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# run: |
2121
# pyenv global system
2222
# python --version
23-
# - uses: actions/checkout@v2
23+
# - uses: actions/checkout@v3
2424
# - name: Build
2525
# run: cargo build --verbose
2626
# - name: Run tests
@@ -33,7 +33,7 @@ jobs:
3333
matrix:
3434
os: [ubuntu-latest, windows-latest, macos-latest]
3535
steps:
36-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
3737
- name: Install Dependencies
3838
run: sudo apt install libunwind-dev
3939
if: runner.os == 'Linux'
@@ -51,7 +51,7 @@ jobs:
5151
- name: Test (retry#2)
5252
run: cargo test --release
5353
if: steps.test1.outcome=='failure'
54-
- uses: actions/setup-python@v2
54+
- uses: actions/setup-python@v4
5555
with:
5656
python-version: 3.9
5757
- name: Build Wheel
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
7474
- name: Upload wheels
75-
uses: actions/upload-artifact@v2
75+
uses: actions/upload-artifact@v3
7676
with:
7777
name: wheels
7878
path: dist
@@ -90,7 +90,7 @@ jobs:
9090
RUSTUP_HOME: /root/.rustup
9191
CARGO_HOME: /root/.cargo
9292
steps:
93-
- uses: actions/checkout@v2
93+
- uses: actions/checkout@v3
9494
- name: Build
9595
run: |
9696
python3 -m pip install --upgrade maturin
@@ -99,7 +99,7 @@ jobs:
9999
run: |
100100
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
101101
- name: Upload wheels
102-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v3
103103
with:
104104
name: wheels
105105
path: dist
@@ -114,7 +114,7 @@ jobs:
114114
# release: FreeBSD-13.1-STABLE
115115
# url: https://github.com/rbspy/freebsd-vagrant-box/releases/download/20220703/fbsd_13_1.box
116116
# steps:
117-
# - uses: actions/checkout@v2
117+
# - uses: actions/checkout@v3
118118
# - name: Cache Vagrant box
119119
# uses: actions/cache@v2
120120
# with:
@@ -123,7 +123,7 @@ jobs:
123123
# restore-keys: |
124124
# ${{ matrix.box }}-vagrant-
125125
# - name: Cache Cargo and build artifacts
126-
# uses: actions/cache@v2.1.4
126+
# uses: actions/cache@v3
127127
# with:
128128
# path: build-artifacts.tar
129129
# key: ${{ matrix.box }}-cargo-${{ hashFiles('**/Cargo.lock') }}
@@ -152,7 +152,7 @@ jobs:
152152
# tar xf build-artifacts.tar target/release/py-spy-for-datakit
153153
# mv target/release/py-spy-for-datakit py-spy-for-datakit-x86_64-unknown-freebsd
154154
# - name: Upload Binaries
155-
# uses: actions/upload-artifact@v2
155+
# uses: actions/upload-artifact@v3
156156
# with:
157157
# name: py-spy-for-datakit-x86_64-unknown-freebsd
158158
# path: py-spy-for-datakit-x86_64-unknown-freebsd
@@ -168,11 +168,11 @@ jobs:
168168
# # TODO: also test windows
169169
# os: [ubuntu-latest, macos-latest]
170170
# steps:
171-
# - uses: actions/checkout@v2
172-
# - uses: actions/download-artifact@v2
171+
# - uses: actions/checkout@v3
172+
# - uses: actions/download-artifact@v3
173173
# with:
174174
# name: wheels
175-
# - uses: actions/setup-python@v2
175+
# - uses: actions/setup-python@v4
176176
# with:
177177
# python-version: ${{ matrix.python-version }}
178178
# - name: Install wheel
@@ -217,8 +217,8 @@ jobs:
217217
# # only test out relatively recent versions of python
218218
# pyenv-python-version: [3.7.10, 3.8.9, 3.9.4]
219219
# steps:
220-
# - uses: actions/checkout@v2
221-
# - uses: actions/download-artifact@v2
220+
# - uses: actions/checkout@v3
221+
# - uses: actions/download-artifact@v3
222222
# with:
223223
# name: wheels
224224
# - name: Setup pyenv
@@ -241,7 +241,7 @@ jobs:
241241
# needs: [test-wheels, test-wheel-linux-armv7]
242242
needs: [build, build-linux-cross]
243243
steps:
244-
- uses: actions/download-artifact@v2
244+
- uses: actions/download-artifact@v3
245245
with:
246246
name: wheels
247247
- name: Create GitHub Release
@@ -252,7 +252,7 @@ jobs:
252252
- name: Install Dependencies
253253
run: sudo apt install libunwind-dev
254254
if: runner.os == 'Linux'
255-
- uses: actions/setup-python@v2
255+
- uses: actions/setup-python@v4
256256
with:
257257
python-version: 3.9
258258
- name: Push to PyPi
@@ -263,7 +263,7 @@ jobs:
263263
pip install --upgrade wheel pip setuptools twine
264264
twine upload *
265265
rm *
266-
- uses: actions/checkout@v2
266+
- uses: actions/checkout@v3
267267
- name: Push to crates.io
268268
env:
269269
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/update_python_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ jobs:
77
update-dep:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111
with:
1212
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
13-
- uses: actions/setup-python@v2
13+
- uses: actions/setup-python@v4
1414
with:
1515
python-version: 3.9
1616
- name: Install
1717
run: pip install --upgrade requests
1818
- name: Scan for new python versions
1919
run: python ci/update_python_test_versions.py
2020
- name: Create Pull Request
21-
uses: peter-evans/create-pull-request@v3
21+
uses: peter-evans/create-pull-request@v4
2222
with:
2323
commit-message: Update tested python versions
2424
title: Update tested python versions

0 commit comments

Comments
 (0)