Skip to content

Commit

Permalink
[CI] Use same runtime deps for releases and for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katyukha committed Mar 24, 2023
1 parent 6e23537 commit 937673d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 50 deletions.
1 change: 0 additions & 1 deletion .ci/deps/ubuntu.22.04.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ fontconfig
libmagic1
postgresql-client
lsb-base

62 changes: 13 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*.*.*-RC*'

env:
ODOOD_DLANG_COMPILER: ldc-1.31.0
ODOOD_DLANG_COMPILER: ldc-1.32.0

jobs:
build-ubuntu-20_04:
Expand All @@ -30,6 +30,11 @@ jobs:
dub build -b release -c bash-autocomplete --override-config=pyd/python38
dub build -b release --override-config=pyd/python38
- name: Prepare dependencies for deb package
id: prepare_deb_deps
run: |
echo "ubuntu_20_04_deps=$(cat .ci/deps/ubuntu.20.04.txt | tr '\n' ',' | sed 's/,$/\n/')" >> $GITHUB_OUTPUT
- name: Prepare debian build
run: |
mkdir -p .debpkg/usr/bin
Expand All @@ -47,30 +52,7 @@ jobs:
maintainer: Dmytro Katyukha <dmytro.katyukha@gmail.com>
version: ${{ github.ref_name }} # v*.*.*
arch: 'amd64'
depends: >-
sudo,
bash-completion,
libzip5,
python3,
python3-virtualenv,
python3-dev,
libpq-dev,
libsass-dev,
libjpeg-dev,
libyaml-dev,
libfreetype6-dev,
zlib1g-dev,
libxml2-dev,
libxslt-dev,
bzip2,
libsasl2-dev,
libldap2-dev,
libssl-dev,
libffi-dev,
fontconfig,
libmagic1,
postgresql-client,
lsb-base
depends: ${{ steps.prepare_deb_deps.outputs.ubuntu_20_04_deps }}
desc: 'Odood - the easy way to handle multiple local Odoo installations.'

- name: Move deb package to build dir with correct name
Expand Down Expand Up @@ -107,6 +89,11 @@ jobs:
dub build -b release -c bash-autocomplete --override-config=pyd/python310
dub build -b release --override-config=pyd/python310
- name: Prepare dependencies for deb package
id: prepare_deb_deps
run: |
echo "ubuntu_22_04_deps=$(cat .ci/deps/ubuntu.22.04.txt | tr '\n' ',' | sed 's/,$/\n/')" >> $GITHUB_OUTPUT
- name: Prepare debian build
run: |
mkdir -p .debpkg/usr/bin
Expand All @@ -124,30 +111,7 @@ jobs:
maintainer: Dmytro Katyukha <dmytro.katyukha@gmail.com>
version: ${{ github.ref_name }} # v*.*.*
arch: 'amd64'
depends: >-
sudo,
bash-completion,
libzip4,
python3,
python3-virtualenv,
python3-dev,
libpq-dev,
libsass-dev,
libjpeg-dev,
libyaml-dev,
libfreetype6-dev,
zlib1g-dev,
libxml2-dev,
libxslt-dev,
bzip2,
libsasl2-dev,
libldap2-dev,
libssl-dev,
libffi-dev,
fontconfig,
libmagic1,
postgresql-client,
lsb-base
depends: ${{ steps.prepare_deb_deps.outputs.ubuntu_22_04_deps }}
desc: 'Odood - the easy way to handle multiple local Odoo installations.'

- name: Move deb package to build dir with correct name
Expand Down

0 comments on commit 937673d

Please sign in to comment.