Skip to content

Commit 28c9353

Browse files
committed
update github actions
1 parent 75d8da3 commit 28c9353

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

.github/workflows/python.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@ jobs:
77
name: sdist Build
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: Install Build Deps
1212
run: sudo apt install libusb-1.0-0-dev
1313
- name: setup pkg-config
1414
run: export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.12
2020
- name: Install Latest Rust Nightly
21-
uses: actions-rs/toolchain@v1
21+
uses: dtolnay/rust-toolchain@master
2222
with:
2323
toolchain: nightly
24-
override: true
2524
- name: Python Build
2625
run: |
2726
pip install -U setuptools wheel setuptools-rust twine
@@ -48,7 +47,7 @@ jobs:
4847
matrix:
4948
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
5049
steps:
51-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5251
- name: Run manylinux Builds
5352
uses: docker://quay.io/pypa/manylinux2014_x86_64
5453
with:
@@ -80,9 +79,9 @@ jobs:
8079
matrix:
8180
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
8281
steps:
83-
- uses: actions/checkout@v2
82+
- uses: actions/checkout@v4
8483
- name: Set up Python ${{ matrix.python-version }}
85-
uses: actions/setup-python@v1
84+
uses: actions/setup-python@v5
8685
with:
8786
python-version: ${{ matrix.python-version }}
8887
- name: Install libusb
@@ -93,10 +92,9 @@ jobs:
9392
./vcpkg integrate install
9493
vcpkg install libusb:x64-windows-static-md
9594
- name: Install Latest Rust Nightly
96-
uses: actions-rs/toolchain@v1
95+
uses: dtolnay/rust-toolchain@master
9796
with:
9897
toolchain: nightly
99-
override: true
10098
- name: Python Build
10199
run: |
102100
pip install -U setuptools wheel setuptools-rust twine

.github/workflows/rust.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,31 @@ jobs:
77
name: Build
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: Install Build Deps
1212
run: sudo apt install libusb-1.0-0-dev
1313
- name: setup pkg-config
1414
run: export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
1515
- name: Install Latest Nightly
16-
uses: actions-rs/toolchain@v1
16+
uses: dtolnay/rust-toolchain@master
1717
with:
1818
toolchain: nightly
19-
override: true
2019
- name: Run Cargo Build
2120
run: cargo build --release --all-features
2221
clippy_check:
2322
name: Clippy Check
2423
runs-on: ubuntu-latest
2524
steps:
26-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v4
2726
- name: Install Build Deps
2827
run: sudo apt install libusb-1.0-0-dev
2928
- name: setup pkg-config
3029
run: export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
31-
- uses: actions-rs/toolchain@v1
30+
- uses: dtolnay/rust-toolchain@master
3231
with:
3332
toolchain: nightly
3433
components: clippy
35-
override: true
36-
- uses: actions-rs/clippy-check@v1
34+
- uses: giraffate/clippy-action@v1
3735
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
39-
args: --all-features
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
reporter: 'github-pr-review'

0 commit comments

Comments
 (0)