mirror of https://gitlab.com/basile.b/dexed.git
change the image used to build the releases
This commit is contained in:
parent
700d2c6fd8
commit
2478e6dd03
|
@ -16,30 +16,9 @@ pages:
|
|||
- merge_requests
|
||||
|
||||
release:
|
||||
image: dlang2/ldc-ubuntu
|
||||
image: registry.gitlab.com/basile.b/dexed/rlz-image.fedora.x86_64:1.3
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
before_script:
|
||||
- apt-get update -y
|
||||
# deps, packaging tools
|
||||
- apt-get install -y rpm
|
||||
- apt-get install -y git
|
||||
- apt-get install -y zip
|
||||
- apt-get install -y libcurl4-openssl-dev
|
||||
- apt-get install -y git-lfs && git lfs install
|
||||
# gitlab Ubuntu-based runners default to LD gold
|
||||
# but linking lazarus programs requires LD bfd.
|
||||
- update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 20
|
||||
- update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 10
|
||||
- update-alternatives --config ld
|
||||
- ld --version
|
||||
# lazarus
|
||||
- git clone https://gitlab.com/basile.b/laz-bin-cache.git --depth=1
|
||||
- cd laz-bin-cache
|
||||
- apt install -y ./fpc-laz_3.2.2-210709_amd64.deb
|
||||
- apt install -y ./fpc-src_3.2.2-210709_amd64.deb
|
||||
- apt install -y ./lazarus-project_2.2.0-0_amd64.deb
|
||||
- cd ..
|
||||
script:
|
||||
- bash setup/build-release.sh
|
||||
artifacts:
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
FROM fedora:37
|
||||
RUN dnf install -y "coreutils" "dpkg" "rpm" "rpm-build" "zip" "tar" "make" "findutils" "curl" "git" "libgcc" "bash" "which" &&\
|
||||
curl -JLO "https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%202.2.6/fpc-3.2.2-1.x86_64.rpm/download" &&\
|
||||
curl -JLO "https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%202.2.6/fpc-src-3.2.2-1.x86_64.rpm" &&\
|
||||
curl -JLO "https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%202.2.6/lazarus-2.2.6-0.x86_64.rpm/download" &&\
|
||||
dnf install -y "fpc-3.2.2-1.x86_64.rpm" "fpc-src-3.2.2-1.x86_64.rpm" "lazarus-2.2.6-0.x86_64.rpm" &&\
|
||||
curl -JLO "https://github.com/ldc-developers/ldc/releases/download/v1.32.2/ldc2-1.32.2-linux-x86_64.tar.xz" &&\
|
||||
tar -xf "ldc2-1.32.2-linux-x86_64.tar.xz" && mv "ldc2-1.32.2-linux-x86_64" "ldc2-" &&\
|
||||
ln -s "/ldc2-/bin/ldc2" "/usr/bin/ldc2" && ln -s "/ldc2-/bin/ldmd2" "/usr/bin/ldmd2" && ln -s "/ldc2-/bin/dub" "/usr/bin/dub" &&\
|
||||
dnf clean all && rm -rf "/var/cache/yum"
|
|
@ -0,0 +1 @@
|
|||
sudo docker build $(realpath ".") -t "registry.gitlab.com/basile.b/dexed/rlz-image.fedora.x86_64:1.3"
|
Loading…
Reference in New Issue