ci: running cross compile testing on ubuntu-20.04

This commit is contained in:
LongYinan 2021-03-11 00:19:38 +08:00
parent 510e584750
commit 6c8dcea460
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@ name: Linux-aarch64
env:
DEBUG: 'napi:*'
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: 'aarch64-linux-gnu-gcc'
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: 'aarch64-linux-gnu-gcc-9'
on:
push:
@ -13,7 +13,7 @@ on:
jobs:
build:
name: stable - aarch64-unknown-linux-gnu - node@14
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
@ -60,7 +60,7 @@ jobs:
key: npm-cache-linux-aarch64-gnu-node@14-${{ hashFiles('yarn.lock') }}
- name: Install cross compile toolchain
run: sudo apt-get install gcc-aarch64-linux-gnu g++-6-aarch64-linux-gnu -y
run: sudo apt-get install gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu -y
- name: Install dependencies
run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000

View file

@ -2,7 +2,7 @@ name: Linux-armv7
env:
DEBUG: 'napi:*'
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: 'arm-linux-gnueabihf-gcc'
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: 'arm-linux-gnueabihf-gcc-9'
on:
push:
@ -12,8 +12,8 @@ on:
jobs:
build:
name: stable - aarch64-unknown-linux-gnu - node@14
runs-on: ubuntu-latest
name: stable - armv7-unknown-linux-gnu - node@14
runs-on: ubuntu-20.04
steps:
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
@ -60,7 +60,7 @@ jobs:
key: npm-cache-linux-armv7-gnu-node@14-${{ hashFiles('yarn.lock') }}
- name: Install cross compile toolchain
run: sudo apt-get install gcc-arm-linux-gnueabihf -y
run: sudo apt-get install gcc-9-arm-linux-gnueabihf -y
- name: Install dependencies
run: yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000