mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-01 14:47:27 +02:00
Update docker images and build matrix
This commit is contained in:
parent
184f866bf0
commit
e7487294b6
34
.github/workflows/linux.yml
vendored
34
.github/workflows/linux.yml
vendored
@ -8,23 +8,33 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
|
- {
|
||||||
|
id: 'ubuntu-22.04-qt6',
|
||||||
|
name: "Ubuntu 22.04",
|
||||||
|
docker_image: "fwbuilder/ubuntu:22.04",
|
||||||
|
unit_tests: true,
|
||||||
|
qt6: true,
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
id: 'ubuntu-22.04-qt5',
|
||||||
|
name: "Ubuntu 22.04",
|
||||||
|
docker_image: "fwbuilder/ubuntu:22.04",
|
||||||
|
unit_tests: true,
|
||||||
|
qt6: false,
|
||||||
|
}
|
||||||
- {
|
- {
|
||||||
id: 'ubuntu-20.04',
|
id: 'ubuntu-20.04',
|
||||||
name: "Ubuntu 20.04",
|
name: "Ubuntu 20.04",
|
||||||
docker_image: "fwbuilder/ubuntu:20.04",
|
docker_image: "fwbuilder/ubuntu:20.04",
|
||||||
unit_tests: true
|
unit_tests: true,
|
||||||
|
qt6: false,
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
id: 'ubuntu-18.04',
|
id: 'ubuntu-18.04',
|
||||||
name: "Ubuntu 18.04",
|
name: "Ubuntu 18.04",
|
||||||
docker_image: "fwbuilder/ubuntu:18.04",
|
docker_image: "fwbuilder/ubuntu:18.04",
|
||||||
unit_tests: true
|
unit_tests: true,
|
||||||
}
|
qt6: false,
|
||||||
- {
|
|
||||||
id: 'ubuntu-16.04',
|
|
||||||
name: "Ubuntu 16.04",
|
|
||||||
docker_image: "fwbuilder/ubuntu:16.04",
|
|
||||||
unit_tests: false
|
|
||||||
}
|
}
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.config.docker_image }}
|
image: ${{ matrix.config.docker_image }}
|
||||||
@ -38,7 +48,13 @@ jobs:
|
|||||||
key: ${{ matrix.config.id }}-ccache-${{ github.sha }}
|
key: ${{ matrix.config.id }}-ccache-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ matrix.config.id }}-ccache
|
${{ matrix.config.id }}-ccache
|
||||||
- name: Configure
|
- name: Configure (Qt6)
|
||||||
|
if: ${{ matrix.config.qt6 == true }}
|
||||||
|
run: |
|
||||||
|
mkdir -p build && cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DUseQt6=ON
|
||||||
|
- name: Configure (Qt5)
|
||||||
|
if: ${{ matrix.config.qt6 == false }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
|||||||
5
.github/workflows/w32-mxe.yml
vendored
5
.github/workflows/w32-mxe.yml
vendored
@ -13,11 +13,6 @@ jobs:
|
|||||||
name: "MXE Qt 5.15",
|
name: "MXE Qt 5.15",
|
||||||
docker_image: "fwbuilder/mxe:qt-5.15"
|
docker_image: "fwbuilder/mxe:qt-5.15"
|
||||||
}
|
}
|
||||||
- {
|
|
||||||
id: "mxe-qt-5.12",
|
|
||||||
name: "MXE Qt 5.12",
|
|
||||||
docker_image: "fwbuilder/mxe:qt-5.12"
|
|
||||||
}
|
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.config.docker_image }}
|
image: ${{ matrix.config.docker_image }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -1,37 +0,0 @@
|
|||||||
FROM debian:stretch AS builder
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
autoconf \
|
|
||||||
automake \
|
|
||||||
autopoint \
|
|
||||||
binutils \
|
|
||||||
bison \
|
|
||||||
build-essential \
|
|
||||||
bzip2 \
|
|
||||||
cmake \
|
|
||||||
fakeroot \
|
|
||||||
flex \
|
|
||||||
git \
|
|
||||||
make \
|
|
||||||
gperf \
|
|
||||||
intltool \
|
|
||||||
libgdk-pixbuf2.0-dev \
|
|
||||||
libtool \
|
|
||||||
libtool-bin \
|
|
||||||
lzip \
|
|
||||||
python \
|
|
||||||
p7zip-full \
|
|
||||||
ruby \
|
|
||||||
unzip \
|
|
||||||
wget
|
|
||||||
WORKDIR /opt
|
|
||||||
RUN git clone https://github.com/mxe/mxe.git
|
|
||||||
# Use Qt 5.12.4
|
|
||||||
RUN cd mxe && git checkout 0567f17d34463abda1790957812c54e8c0cf59fe -- src/qtbase.mk
|
|
||||||
RUN cd mxe && make MXE_TARGETS='i686-w64-mingw32.shared' -j$(nproc) qtbase libxml2 libxslt
|
|
||||||
RUN /opt/mxe/.ccache/bin/ccache -Cz
|
|
||||||
|
|
||||||
FROM debian:stretch
|
|
||||||
RUN apt-get update && apt-get install -y nsis make git
|
|
||||||
WORKDIR /
|
|
||||||
COPY --from=builder /opt/mxe /opt/mxe
|
|
||||||
CMD ["bash"]
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
FROM debian:stretch AS builder
|
FROM debian:bullseye AS builder
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
@ -20,19 +20,19 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libssl-dev \
|
libssl-dev \
|
||||||
lzip \
|
lzip \
|
||||||
python \
|
python \
|
||||||
python-mako \
|
python3-mako \
|
||||||
p7zip-full \
|
p7zip-full \
|
||||||
ruby \
|
ruby \
|
||||||
unzip \
|
unzip \
|
||||||
wget
|
wget
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN git clone https://github.com/mxe/mxe.git
|
RUN git clone https://github.com/mxe/mxe.git
|
||||||
# Use Qt 5.15.1
|
# Use Qt 5.15.10
|
||||||
RUN cd mxe && git checkout eb26bce6dd1b4b7a79cdbd9011251e6101bed60d -- src/qtbase.mk
|
RUN cd mxe && git checkout 5f3972b4334172a9ba86e0a1b2112715fb70a680 -- src/qtbase.mk
|
||||||
RUN cd mxe && make MXE_TARGETS='i686-w64-mingw32.shared' -j$(nproc) qtbase libxml2 libxslt
|
RUN cd mxe && make MXE_TARGETS='i686-w64-mingw32.shared' -j$(nproc) qtbase libxml2 libxslt
|
||||||
RUN /opt/mxe/.ccache/bin/ccache -Cz
|
RUN /opt/mxe/.ccache/bin/ccache -Cz
|
||||||
|
|
||||||
FROM debian:stretch
|
FROM debian:bullseye
|
||||||
RUN apt-get update && apt-get install -y nsis make git ccache
|
RUN apt-get update && apt-get install -y nsis make git ccache
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=builder /opt/mxe /opt/mxe
|
COPY --from=builder /opt/mxe /opt/mxe
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
@ -13,8 +14,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
nsis \
|
nsis \
|
||||||
cmake \
|
cmake \
|
||||||
git \
|
git \
|
||||||
qt5-default \
|
qt5-qmake \
|
||||||
|
qtbase5-dev \
|
||||||
|
qt6-base-dev \
|
||||||
ccache
|
ccache
|
||||||
|
|
||||||
|
RUN apt-get clean
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
Loading…
x
Reference in New Issue
Block a user