88 branches : [ master ]
99
1010env :
11- HORIZON_VERSION : 2.5 .0
11+ HORIZON_VERSION : 2.6 .0
1212 HORIZON_PKG_VERSION : 1
1313 DEBIAN_FRONTEND : noninteractive
1414 LANG : en_US.UTF-8
@@ -21,22 +21,18 @@ jobs:
2121 fail-fast : false
2222 matrix :
2323 os :
24- - distro : debian
25- release : buster
2624 - distro : debian
2725 release : bullseye
2826 - distro : debian
2927 release : bookworm
30- - distro : ubuntu
31- release : bionic
3228 - distro : ubuntu
3329 release : focal
3430 - distro : ubuntu
3531 release : jammy
3632 - distro : ubuntu
37- release : kinetic
33+ release : noble
3834 - distro : ubuntu
39- release : lunar
35+ release : oracular
4036 runs-on : ubuntu-latest
4137 container : ${{ matrix.os.distro }}:${{ matrix.os.release }}
4238 steps :
@@ -52,16 +48,19 @@ jobs:
5248 echo "${{ env.LANG }} UTF-8" > /etc/locale.gen
5349 locale-gen
5450 - name : install build utils
55- run : apt-get install -y devscripts build-essential lintian wget debhelper curl jq reprepro gnupg rsync
51+ run : apt-get install -y devscripts build-essential lintian wget debhelper curl jq reprepro gnupg rsync meson cmake
5652 - name : import gpg key
5753 run : |
5854 echo "${{ secrets.GPG_KEY}}" | gpg --import
5955 gpg --list-keys
6056 - name : install dependencies
61- run : apt-get install -y git build-essential libsqlite3-dev util-linux librsvg2-dev libcairomm-1.0-dev libepoxy-dev libgtkmm-3.0-dev uuid-dev libzmq5 libzmq3-dev libglm-dev libgit2-dev libcurl4-gnutls-dev liboce-ocaf-dev libpodofo-dev python3 libarchive-dev libspnav-dev git libdxflib-dev
62- - name : install gcc 8
63- if : ${{ matrix.os.release == 'bionic' }}
64- run : apt-get install -y g++-8
57+ run : apt-get install -y git build-essential libsqlite3-dev util-linux librsvg2-dev libcairomm-1.0-dev libepoxy-dev libgtkmm-3.0-dev uuid-dev libzmq5 libzmq3-dev libglm-dev libgit2-dev libcurl4-gnutls-dev libpodofo-dev python3 libarchive-dev libspnav-dev git libdxflib-dev
58+ - name : Install opencascade
59+ run : apt-get install liboce-ocaf-dev -y
60+ if : ${{ matrix.os.release != 'noble' && matrix.os.release != 'oracular' }}
61+ - name : Install opencascade
62+ run : apt-get install libocct-ocaf-dev libocct-data-exchange-dev -y
63+ if : ${{ matrix.os.release == 'noble' || matrix.os.release == 'oracular' }}
6564 - name : download tarball
6665 run : wget https://github.com/horizon-eda/horizon/archive/v${HORIZON_VERSION}.tar.gz -O horizon-eda-upstream_${HORIZON_VERSION}.orig.tar.gz
6766
7170 mv horizon-${HORIZON_VERSION} horizon-eda-upstream-${HORIZON_VERSION}
7271 cp -r debian horizon-eda-upstream-${HORIZON_VERSION}
7372
74- - name : patch debian/rules to use gcc 8
75- if : ${{ matrix.os.release == 'bionic' }}
76- run : |
77- sed -i '/export CC/s/#//g' horizon-eda-upstream-${HORIZON_VERSION}/debian/rules
78- sed -i '/export CXX/s/#//g' horizon-eda-upstream-${HORIZON_VERSION}/debian/rules
73+ - name : patch debian/control opencascade package names
74+ run : sed -i "s/liboce-ocaf-dev,/libocct-ocaf-dev,\\n libocct-data-exchange-dev,/" horizon-eda-upstream-${HORIZON_VERSION}/debian/control
75+ if : ${{ matrix.os.release == 'noble' || matrix.os.release == 'oracular' }}
7976
8077 - name : run debuild
8178 run : debuild -uc -us
@@ -84,12 +81,12 @@ jobs:
8481 - name : list files
8582 run : ls
8683 - name : upload debian packages
87- uses : actions/upload-artifact@v2-preview
84+ uses : actions/upload-artifact@v4
8885 with :
8986 name : packages-${{ matrix.os.distro }}-${{ matrix.os.release }}
9087 path : ./*.*deb
9188 - name : upload debian source files
92- uses : actions/upload-artifact@v2-preview
89+ uses : actions/upload-artifact@v4
9390 with :
9491 name : source-packages-${{ matrix.os.distro }}-${{ matrix.os.release }}
9592 path : |
0 commit comments