Skip to content

Commit

Permalink
Use gcc-10 on Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Nov 16, 2022
1 parent 01e2413 commit c0a2ec5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions azure-pipelines/create-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ stages:
parameters:
ubuntu_version: 22.04
job_name: 'Ubuntu22_04'
gcc_version: '10'
- job: 'Debian'
pool:
vmImage: 'ubuntu-18.04'
Expand Down
6 changes: 6 additions & 0 deletions azure-pipelines/jobs/release_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ parameters:
- name: build_appimage
type: boolean
default: false
- name: gcc_version
type: string
default: '8'

jobs:
- job: '${{ parameters.job_name }}'
Expand All @@ -15,11 +18,14 @@ jobs:
displayName: 'Build for Ubuntu ${{ parameters.ubuntu_version }}'
steps:
- template: ../steps/install_deps_ubuntu.yml
parameters:
gcc_version: ${{ parameters.gcc_version }}
- template: ../steps/build_linux.yml
parameters:
build_type: 'RelWithDebInfo'
cmake_flags: '-DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_CPPUNIT=ON -DDEBUG_COMPILE=ON -DCMAKE_INSTALL_PREFIX=/usr -DCPACK_GENERATOR="TGZ;DEB"'
cmake_commands: '--target package'
gcc_version: ${{ parameters.gcc_version }}
- bash: |
# Build AppImage
export VERSION=$(cat VERSION | sed '1q;d')
Expand Down
1 change: 1 addition & 0 deletions azure-pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ stages:
parameters:
ubuntu_version: 22.04
job_name: 'Ubuntu22_04'
gcc_version: '10'
- job: 'Debian'
pool:
vmImage: 'ubuntu-18.04'
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines/steps/install_deps_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

parameters:
build_type: 'Debug'
gcc_version: '8'

steps:
- bash: |
sudo apt-get update
sudo apt-get install -y librsvg2-dev gcc-8 g++-8 cmake ninja-build libcppunit-dev libgtk-3-dev libpoppler-glib-dev portaudio19-dev libsndfile-dev liblua5.3-dev libzip-dev gettext help2man
sudo apt-get install -y librsvg2-dev gcc-${{ parameters.gcc_version }} g++-${{ parameters.gcc_version }} cmake ninja-build libcppunit-dev libgtk-3-dev libpoppler-glib-dev portaudio19-dev libsndfile-dev liblua5.3-dev libzip-dev gettext help2man
g++ --version
displayName: 'Install dependencies'

0 comments on commit c0a2ec5

Please sign in to comment.