Skip to content

Commit

Permalink
fixes to ci, armhf maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankurte committed Dec 31, 2020
1 parent 1fdb6f0 commit b08ab4e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:

- name: Configure caching
uses: actions/cache@v2
# Caching disabled on macos due to https://github.com/actions/cache/issues/403
if: ${{ matrix.os != 'macos-latest' }}
with:
key: ${{ matrix.os }}-${{ matrix.target }}
path: |
Expand All @@ -72,13 +74,17 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
run: sudo apt install -y libusb-1.0 libusb-dev

- name: Install libusb (apt armv7)
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.target == 'armv7-unknown-linux-gnueabihf' }}
- name: Install libusb (armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
uses: ryankurte/[email protected]
with:
arch: armhf
packages: libusb-dev:armhf

- name: Enable cross compilation (armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: |
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports focal main universe" | sudo tee /etc/apt/sources.list.d/armhf.list
sudo apt update
sudo apt install libusb-1.0:armhf libusb-dev:armhf
echo "PKG_CONFIG_ALLOW_CROSS=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
- name: Install libusb (vcpkg)
if: ${{ matrix.os == 'windows-latest' }}
Expand Down

0 comments on commit b08ab4e

Please sign in to comment.