Skip to content
Snippets Groups Projects
Commit 3a7d097e authored by nimrod's avatar nimrod
Browse files

Cross build.

Build for different architectures.
parent 22c388da
No related branches found
No related tags found
No related merge requests found
Pipeline #131 failed
...@@ -2,8 +2,26 @@ ...@@ -2,8 +2,26 @@
build: build:
image: buildpack-deps:bullseye image: buildpack-deps:bullseye
before_script: before_script:
- |
case "$GOARCH" in
386) DEBARCH="i386";;
amd64) DEBARCH="amd64";;
arm) DEBARCH="armhf";;
arm64) DEBARCH="arm64";;
esac
- dpkg --add-architecture "$DEBARCH"
- apt-get update - apt-get update
- apt-get install -y meson golang systemd podman go-md2man bash-completion shellcheck cmake - >-
apt-get install -y
bash-completion
"cmake:$DEBARCH"
"crossbuild-essential-$DEBARCH"
"golang:$DEBARCH"
"go-md2man:$DEBARCH"
"meson:$DEBARCH"
"podman:$DEBARCH"
"shellcheck:$DEBARCH"
"systemd:$DEBARCH"
- git clone https://github.com/containers/toolbox.git - git clone https://github.com/containers/toolbox.git
- cd toolbox - cd toolbox
script: script:
...@@ -15,3 +33,7 @@ build: ...@@ -15,3 +33,7 @@ build:
- toolbox/builddir/doc/ - toolbox/builddir/doc/
- toolbox/builddir/meson-logs/ - toolbox/builddir/meson-logs/
- toolbox/builddir/.ninja_log - toolbox/builddir/.ninja_log
parallel:
matrix:
- GOOS: ["linux"]
GOARCH: ["386", "amd64", "arm", "arm64"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment