Skip to content

Commit

Permalink
Merge pull request torizon#215 from andreriesco/dev
Browse files Browse the repository at this point in the history
torizonPackages:Separate buildDeps from devDeps(renamed to devRuntime…
  • Loading branch information
microhobby authored Jul 17, 2024
2 parents f31c8d7 + a26780e commit 81da5e0
Show file tree
Hide file tree
Showing 33 changed files with 214 additions and 99 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-ccpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ jobs:
project:
- folder: cppQML
container: cpp-qml
arch: arm64
vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

- folder: cppSlint
container: cpp-slint
arch: arm64

vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

steps:
- uses: actions/checkout@v3
Expand All @@ -30,10 +29,14 @@ jobs:
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
VENDOR: ${{ matrix.project.vendor }}
DOCKER_LOGIN: localhost:5002

run: |
$_vendor = ($env:VENDOR | ConvertFrom-Json)
$env:TORIZON_ARCH = $_vendor.torizon_arch
$env:PROJECT_ARCH = $_vendor.arch
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
Expand All @@ -46,4 +49,9 @@ jobs:
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
$_settingsJson = Get-Content -Path ".vscode/settings.json" | ConvertFrom-Json
$_settingsJson.torizon_arch = $env:TORIZON_ARCH
Set-Content -Path ".vscode/settings.json" -Value ($_settingsJson | ConvertTo-Json) -Encoding UTF8
./.vscode/tasks.ps1 run build-container-torizon-release-${env:PROJECT_ARCH}
19 changes: 14 additions & 5 deletions .github/workflows/build-debug-ccpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,28 @@ jobs:
project:
- folder: cppQML
container: cpp-qml
arch: arm64
vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

- folder: cppSlint
container: cpp-slint
arch: arm64

vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

steps:
- uses: actions/checkout@v3

- name: Build ${{ matrix.project.folder }} Dockerfile.debug
- name: Build ${{ matrix.project.folder }} Dockerfile
shell: pwsh
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
VENDOR: ${{ matrix.project.vendor }}
DOCKER_LOGIN: localhost:5002

run: |
$_vendor = ($env:VENDOR | ConvertFrom-Json)
$env:TORIZON_ARCH = $_vendor.torizon_arch
$env:PROJECT_ARCH = $_vendor.arch
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
Expand All @@ -45,6 +49,11 @@ jobs:
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
$_settingsJson = Get-Content -Path ".vscode/settings.json" | ConvertFrom-Json
$_settingsJson.torizon_arch = $env:TORIZON_ARCH
Set-Content -Path ".vscode/settings.json" -Value ($_settingsJson | ConvertTo-Json) -Encoding UTF8
# TODO: this is bad, but it's the only way to make it work for now
chmod 777 . -R
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/build-debug-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,24 @@ jobs:
project:
- folder: python3Console
container: python3-console
arch: arm64

vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

steps:
- uses: actions/checkout@v3

- name: Build ${{ matrix.project.folder }} Dockerfile.debug
- name: Build ${{ matrix.project.folder }} Dockerfile
shell: pwsh
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
VENDOR: ${{ matrix.project.vendor }}
DOCKER_LOGIN: localhost:5002

run: |
$_vendor = ($env:VENDOR | ConvertFrom-Json)
$env:TORIZON_ARCH = $_vendor.torizon_arch
$env:PROJECT_ARCH = $_vendor.arch
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
Expand All @@ -41,4 +45,9 @@ jobs:
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
$_settingsJson = Get-Content -Path ".vscode/settings.json" | ConvertFrom-Json
$_settingsJson.torizon_arch = $env:TORIZON_ARCH
Set-Content -Path ".vscode/settings.json" -Value ($_settingsJson | ConvertTo-Json) -Encoding UTF8
./.vscode/tasks.ps1 run build-container-torizon-debug-${env:PROJECT_ARCH}
17 changes: 13 additions & 4 deletions .github/workflows/build-debug-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,24 @@ jobs:
project:
- folder: rustSlint
container: rust-slint
arch: arm64

vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

steps:
- uses: actions/checkout@v3

- name: Build ${{ matrix.project.folder }} Dockerfile.debug
- name: Build ${{ matrix.project.folder }} Dockerfile
shell: pwsh
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
VENDOR: ${{ matrix.project.vendor }}
DOCKER_LOGIN: localhost:5002

run: |
$_vendor = ($env:VENDOR | ConvertFrom-Json)
$env:TORIZON_ARCH = $_vendor.torizon_arch
$env:PROJECT_ARCH = $_vendor.arch
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
Expand All @@ -41,6 +45,11 @@ jobs:
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
$_settingsJson = Get-Content -Path ".vscode/settings.json" | ConvertFrom-Json
$_settingsJson.torizon_arch = $env:TORIZON_ARCH
Set-Content -Path ".vscode/settings.json" -Value ($_settingsJson | ConvertTo-Json) -Encoding UTF8
# TODO: this is bad, but it's the only way to make it work for now
chmod 777 . -R
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/build-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
project:
- folder: python3Console
container: python3-console
arch: arm64

vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

steps:
- uses: actions/checkout@v3
Expand All @@ -26,10 +25,14 @@ jobs:
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
VENDOR: ${{ matrix.project.vendor }}
DOCKER_LOGIN: localhost:5002

run: |
$_vendor = ($env:VENDOR | ConvertFrom-Json)
$env:TORIZON_ARCH = $_vendor.torizon_arch
$env:PROJECT_ARCH = $_vendor.arch
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
Expand All @@ -42,4 +45,9 @@ jobs:
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
$_settingsJson = Get-Content -Path ".vscode/settings.json" | ConvertFrom-Json
$_settingsJson.torizon_arch = $env:TORIZON_ARCH
Set-Content -Path ".vscode/settings.json" -Value ($_settingsJson | ConvertTo-Json) -Encoding UTF8
./.vscode/tasks.ps1 run build-container-torizon-release-${env:PROJECT_ARCH}
14 changes: 11 additions & 3 deletions .github/workflows/build-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
project:
- folder: rustSlint
container: rust-slint
arch: arm64

vendor: "{ arch: 'arm64', torizon_arch: 'aarch64' }"

steps:
- uses: actions/checkout@v3
Expand All @@ -26,10 +25,14 @@ jobs:
env:
PROJECT_FOLDER: ${{ matrix.project.folder }}
PROJECT_CONTAINER: ${{ matrix.project.container }}
PROJECT_ARCH: ${{ matrix.project.arch }}
VENDOR: ${{ matrix.project.vendor }}
DOCKER_LOGIN: localhost:5002

run: |
$_vendor = ($env:VENDOR | ConvertFrom-Json)
$env:TORIZON_ARCH = $_vendor.torizon_arch
$env:PROJECT_ARCH = $_vendor.arch
docker run --rm --privileged torizon/binfmt
scripts/createFromTemplate.ps1 `
Expand All @@ -42,4 +45,9 @@ jobs:
false
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest"
$_settingsJson = Get-Content -Path ".vscode/settings.json" | ConvertFrom-Json
$_settingsJson.torizon_arch = $env:TORIZON_ARCH
Set-Content -Path ".vscode/settings.json" -Value ($_settingsJson | ConvertTo-Json) -Encoding UTF8
./.vscode/tasks.ps1 run build-container-torizon-release-${env:PROJECT_ARCH}
4 changes: 2 additions & 2 deletions assets/json/torizonPackages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"deps": [
"prodRuntimeDeps": [
],
"devDeps": [
"devRuntimeDeps": [
]
}
4 changes: 2 additions & 2 deletions cConsole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ARG IMAGE_ARCH
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cConsole/Dockerfile.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ RUN apt-get -q -y update && \
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cmakeConsole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ RUN apt-get -q -y update && \
apt-get -q -y install \
cmake \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cmakeConsole/Dockerfile.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ RUN apt-get -q -y update && \
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cppConsole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ARG IMAGE_ARCH
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cppConsole/Dockerfile.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN apt-get -q -y update && \
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cppQML/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ RUN apt-get -q -y update && \
libqt6opengl6-dev \
# ADD YOUR PACKAGES HERE
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cppQML/Dockerfile.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ RUN apt-get -q -y update && \
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cppSlint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ ENV PATH=/cargo/bin:/rust/bin:$PATH
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions cppSlint/Dockerfile.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ ARG APP_ROOT
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
4 changes: 2 additions & 2 deletions dotnetAvaloniaFrameBuffer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ RUN apt-get -q -y update && \
RUN apt-get -y update && apt-get install -y --no-install-recommends \
# ADD YOUR PACKAGES HERE
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_prod_start__
# __torizon_packages_prod_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
libice6 \
libsm6 \
Expand Down
4 changes: 2 additions & 2 deletions gambasForms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ WORKDIR /build
RUN apt-get -y update && apt-get install -y --no-install-recommends \
# ADD YOUR PACKAGES HERE
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions javaForms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ RUN apt-get -q -y update && \
msopenjdk-21 \
# ADD YOUR PACKAGES HERE
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# __torizon_packages_build_start__
# __torizon_packages_build_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
Expand Down
Loading

0 comments on commit 81da5e0

Please sign in to comment.