Skip to content

Commit

Permalink
try apt-get in place of apt to see if it fixes obscure 'dpkg: error: …
Browse files Browse the repository at this point in the history
…need an action option' error. (try correct place this time.)
  • Loading branch information
pdgilbert committed Mar 14, 2021
1 parent 6680f8d commit 783ea15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ jobs:
- name: Install libusb (apt native)
if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
#run: sudo apt install -y libusb-1.0 libusb-dev
run: sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev
run: sudo apt install -y libusb-1.0-0 libusb-1.0-0-dev

- name: Install libusb (apt armv7)
if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: |
sudo dpkg add-architecture armhf
sudo apt update
#sudo apt install libusb-1.0:armhf libusb-dev:armhf
sudo apt install -y libusb-1.0-0:armhf libusb-1.0-0-dev:armhf
sudo apt-get install libusb-1.0-0:armhf libusb-1.0-0-dev:armhf # try apt-get in place of apt
- name: Install libusb (vcpkg)
if: ${{ matrix.os == 'windows-latest' }}
Expand Down

0 comments on commit 783ea15

Please sign in to comment.