cmakeConsole: Add support for Torizon AMD64 #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ Debug Containers | |
on: | |
push: | |
branches: | |
- dev | |
- bookworm | |
jobs: | |
ccpp-debug: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/bookworm' || github.ref == 'refs/heads/dev' | |
name: C/C++ Container Debug | |
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.debug | |
shell: pwsh | |
env: | |
PROJECT_FOLDER: ${{ matrix.project.folder }} | |
PROJECT_CONTAINER: ${{ matrix.project.container }} | |
PROJECT_ARCH: ${{ matrix.project.arch }} | |
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" | |
# TODO: this is bad, but it's the only way to make it work for now | |
chmod 777 . -R | |
./.vscode/tasks.ps1 run build-debug-${env:PROJECT_ARCH} | |
./.vscode/tasks.ps1 run build-container-torizon-debug-${env:PROJECT_ARCH} |