Skip to content

Commit bf57c0b

Browse files
use docker to build bin
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
1 parent 9ed8294 commit bf57c0b

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,43 @@ jobs:
99
build:
1010
strategy:
1111
matrix:
12-
os: [windows-latest, ubuntu-latest, macos-latest]
13-
configuration: [Release]
14-
platform: ['x64']
12+
include:
13+
- os: windows-latest
14+
configuration: Release
15+
platform: x64
16+
- os: ubuntu-latest
17+
configuration: Release
18+
platform: x64
19+
container: ubuntu:20.04
20+
- os: macos-latest
21+
configuration: Release
22+
platform: x64
1523
runs-on: ${{ matrix.os }}
1624

25+
container: ${{ matrix.container }}
26+
1727
steps:
1828
# Checkout code
1929
- name: Checkout code
2030
uses: actions/checkout@v3
2131

32+
- name: Install basic tools (Ubuntu 20.04)
33+
if: matrix.container == 'ubuntu:20.04'
34+
env:
35+
DEBIAN_FRONTEND: noninteractive
36+
TZ: Etc/UTC
37+
run: |
38+
apt-get update
39+
apt-get install -y git cmake make gcc g++ pkg-config
40+
apt-get install -y libyaml-dev libftdi1-dev libusb-1.0-0-dev
41+
2242
# Initialize the sub-module
2343
- name: Initialize submodules
2444
run: git submodule update --init
2545

2646
# Install dependencies
2747
- name: Install dependencies
28-
if: matrix.os == 'ubuntu-latest'
48+
if: matrix.os == 'ubuntu-latest' && matrix.container != 'ubuntu:20.04'
2949
run: |
3050
sudo apt-get update
3151
sudo apt-get install -y libyaml-dev libftdi1-dev libusb-1.0-0-dev

0 commit comments

Comments
 (0)