-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #661 from nuttyartist/feat/zjeffer/dockerfiles
Use docker images for debian CI/CD
- Loading branch information
Showing
4 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,35 +9,30 @@ env: | |
|
||
jobs: | ||
deb: | ||
name: deb (${{ matrix.build-type }}, Qt ${{ matrix.qt-version-major }}, ${{ matrix.container != '' && matrix.container || matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
container: ${{ matrix.container }} | ||
name: deb (${{ matrix.build-type }}, Qt ${{ matrix.qt-version-major }}, ${{ matrix.image }}) | ||
runs-on: ubuntu-latest | ||
container: | ||
image: zjeffer/notes:${{ matrix.image }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# Ubuntu's release cycle: https://wiki.ubuntu.com/Releases | ||
- os: ubuntu-20.04 | ||
- image: ubuntu-20_04 | ||
qt-version-major: 5 | ||
build-type: release | ||
|
||
- os: ubuntu-22.04 | ||
- image: ubuntu-22_04 | ||
qt-version-major: 6 | ||
build-type: release | ||
|
||
- os: ubuntu-20.04 | ||
container: ubuntu:23.04 | ||
- image: ubuntu-23_10 | ||
qt-version-major: 6 | ||
build-type: release | ||
steps: | ||
- name: Install other dependencies in docker container | ||
# - sudo: Used by most GitHub actions to install things. | ||
if: matrix.container != '' | ||
run: | | ||
apt update | ||
apt install -y git sudo | ||
# Prevent git's dubious ownership message | ||
git config --global --add safe.directory "${PWD}" | ||
- name: Setup git configuration | ||
# workaround for "detected dubious ownership in repository" git error: https://github.com/actions/checkout/issues/1169 | ||
run: git config --global --add safe.directory "${PWD}" | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -63,11 +58,6 @@ jobs: | |
fi | ||
echo "distro_name=${distro_id}-${distro_codename}" >> "${GITHUB_OUTPUT}" | ||
- name: Install build dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y gcc cmake lintian ${{ matrix.qt-version-major == '6' && 'qt6-base-private-dev qt6-declarative-dev libgl-dev' || 'qtbase5-private-dev qtdeclarative5-dev' }} | ||
- name: Setup GCC problem matcher | ||
uses: ammaraskar/[email protected] | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ubuntu:20.04 | ||
|
||
# fix for tzdata asking for input | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && \ | ||
apt install -y git sudo \ | ||
gcc cmake lintian \ | ||
qtbase5-private-dev qtdeclarative5-dev | ||
RUN apt clean |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# fix for tzdata asking for input | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && \ | ||
apt install -y git sudo \ | ||
gcc cmake lintian \ | ||
qt6-base-private-dev qt6-declarative-dev libgl-dev | ||
RUN apt clean |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ubuntu:23.10 | ||
|
||
# fix for tzdata asking for input | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && \ | ||
apt install -y git sudo \ | ||
gcc cmake lintian \ | ||
qt6-base-private-dev qt6-declarative-dev libgl-dev | ||
RUN apt clean |