-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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' }} | ||
|