try installing openssl

This commit is contained in:
ryan 2020-12-14 21:07:12 +13:00
parent b031f79e1f
commit adcbc6ae20
2 changed files with 25 additions and 2 deletions

View file

@ -56,6 +56,30 @@ jobs:
${{ env.HOME }}/.cargo"
target
- name: Install openssl (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 openssl-dev:armhf
- name: Install openssl (vcpkg)
if: ${{ matrix.os == 'windows-latest' }}
run: |
vcpkg integrate install
vcpkg install openssl:x64-windows-static
echo "OPENSSL_DIR=C:/vcpkg/installed/x64-windows-static/" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
echo "OPENSSL_ROOT_DIR=C:/vcpkg/installed/x64-windows-static/" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
echo "OPENSSL_STATIC=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- name: Cache vcpkg
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.target }}
path: $VCPKG_DIRECTORY
- name: Build release
uses: actions-rs/cargo@v1
with:
@ -83,7 +107,6 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
release:
name: Upload firmware artifacts to release
runs-on: ubuntu-latest