Add back {x86_64, armv7}unknown-linux-gnu{eabihf} targets

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-05-31 00:35:03 +10:00
parent cba8a05c82
commit bcc8057705
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -19,7 +19,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- target: x86_64-unknown-linux-musl - target: x86_64-unknown-linux-gnu
os: ubuntu-latest os: ubuntu-latest
output: cargo-binstall output: cargo-binstall
archive: tgz archive: tgz
@ -27,7 +27,7 @@ jobs:
os: macos-latest os: macos-latest
output: cargo-binstall output: cargo-binstall
archive: zip archive: zip
- target: armv7-unknown-linux-musleabihf - target: armv7-unknown-linux-gnueabihf
os: ubuntu-20.04 os: ubuntu-20.04
output: cargo-binstall output: cargo-binstall
archive: tgz archive: tgz
@ -35,6 +35,14 @@ jobs:
os: windows-latest os: windows-latest
output: cargo-binstall.exe output: cargo-binstall.exe
archive: zip archive: zip
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
output: cargo-binstall
archive: tgz
- target: armv7-unknown-linux-musleabihf
os: ubuntu-20.04
output: cargo-binstall
archive: tgz
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -47,6 +55,13 @@ jobs:
target: ${{ matrix.target }} target: ${{ matrix.target }}
override: true override: true
- name: Install openssl (apt armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
uses: ryankurte/action-apt@v0.3.0
with:
arch: armhf
packages: libssl-dev:armhf libssl1.1:armhf zlib1g-dev:armhf zlib1g:armhf libc-dev:armhf
- name: Install openssl (apt armv7) - name: Install openssl (apt armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }} if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }}
uses: ryankurte/action-apt@v0.3.0 uses: ryankurte/action-apt@v0.3.0
@ -64,10 +79,20 @@ jobs:
${{ env.HOME }}/.cargo" ${{ env.HOME }}/.cargo"
target target
- name: Install cross toolchain (armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: sudo apt-get install gcc-arm-linux-gnueabihf
- name: Install cross toolchain (armv7) - name: Install cross toolchain (armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }} if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }}
run: sudo apt-get install gcc-arm-linux-gnueabihf run: sudo apt-get install gcc-arm-linux-gnueabihf
- name: Enable cross compilation (armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: |
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
echo "LZMA_API_STATIC=1" >> $GITHUB_ENV
- name: Enable cross compilation (armv7) - name: Enable cross compilation (armv7)
if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }} if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }}
run: | run: |