-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (37 loc) · 1.15 KB
/
build-ccpp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: C/C++ Containers
on:
- push
jobs:
ccpp:
runs-on: ubuntu-latest
name: C/C++ Container
strategy:
matrix:
project:
- folder: cppQML
container: cpp-qml
arch: arm64
- folder: cppSlint
container: cpp-slint
arch: arm64
steps:
- uses: actions/checkout@v3
- name: Build ${{ matrix.project.folder }} Dockerfile
shell: pwsh
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
DOCKER_LOGIN: localhost:5002
run: |
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
$env:GITHUB_WORKSPACE/$env:PROJECT_FOLDER `
"${env:PROJECT_FOLDER}CITest" `
"${env:PROJECT_CONTAINER}-ci-test" `
$env:GITHUB_WORKSPACE `
$env:PROJECT_FOLDER `
false `
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
./.vscode/tasks.ps1 run build-container-torizon-${env:PROJECT_ARCH}