Try to build lzma from source for arm cross-build

This commit is contained in:
Félix Saparelli 2021-03-06 23:16:58 +13:00
parent 9c06ca94cb
commit bf91a1f5fa
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474

View file

@ -25,7 +25,7 @@ jobs:
- target: x86_64-apple-darwin - target: x86_64-apple-darwin
os: macos-latest os: macos-latest
output: cargo-binstall output: cargo-binstall
- target: armv7-unknown-linux-gnueabihf - target: armv7-unknown-linux-gnueabihf
os: ubuntu-20.04 os: ubuntu-20.04
output: cargo-binstall output: cargo-binstall
- target: x86_64-pc-windows-msvc - target: x86_64-pc-windows-msvc
@ -35,15 +35,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v1.2.1 - uses: FranzDiebold/github-env-vars-action@v1.2.1
- name: Configure toolchain - name: Configure toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly toolchain: nightly
target: ${{ matrix.target }} target: ${{ matrix.target }}
override: true override: true
- name: Configure caching - name: Configure caching
uses: actions/cache@v2 uses: actions/cache@v2
# Caching disabled on macos due to https://github.com/actions/cache/issues/403 # Caching disabled on macos due to https://github.com/actions/cache/issues/403
if: ${{ matrix.os != 'macos-latest' }} if: ${{ matrix.os != 'macos-latest' }}
@ -68,6 +68,7 @@ jobs:
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }} if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: | run: |
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
echo "LZMA_API_STATIC=1" >> $GITHUB_ENV
- name: Install openssl (vcpkg) - name: Install openssl (vcpkg)
if: ${{ matrix.os == 'windows-latest' }} if: ${{ matrix.os == 'windows-latest' }}
@ -135,13 +136,13 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v1.2.1 - uses: FranzDiebold/github-env-vars-action@v1.2.1
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: cargo-binstall-${{ matrix.target }}.tgz name: cargo-binstall-${{ matrix.target }}.tgz
- name: "Extract build artifact" - name: "Extract build artifact"
run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz
- name: "Run binstall" - name: "Run binstall"
run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm