diff --git a/.github/workflows/release_i386.yml b/.github/workflows/release_i386.yml new file mode 100644 index 0000000..c9152e2 --- /dev/null +++ b/.github/workflows/release_i386.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Release (i386) + +on: + workflow_dispatch + +jobs: + build: + runs-on: self-hosted + container: + image: ubuntu:23.04 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install needed packages + run: apt update && apt install software-properties-common sudo git bc gpg gpg-agent bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar reprepro dpkg-sig devscripts dh-make -y + + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa + known_hosts: ${{ secrets.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Build Package + run: ./main32.sh + + - name: Release Package + run: ./release.sh \ No newline at end of file diff --git a/debian/changelog b/debian/changelog index 0b16dcf..cfbaef9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +wayland (1.22.0-99pika2) lunar; urgency=medium + + * 32bit plz + + -- Ferrreo Fri, 08 Jul 2022 18:26:04 +0200 + wayland (1.22.0-99pika1) lunar; urgency=medium * New upstream release. diff --git a/hooks/01pikarepo b/hooks/01pikarepo new file mode 100644 index 0000000..81ead24 --- /dev/null +++ b/hooks/01pikarepo @@ -0,0 +1,2 @@ +#echo "deb [trusted=yes] https://ppa.pika-os.com/ lunar main" >> /etc/apt/sources.list +apt-get update \ No newline at end of file diff --git a/main32.sh b/main32.sh new file mode 100755 index 0000000..3f03e43 --- /dev/null +++ b/main32.sh @@ -0,0 +1,36 @@ +# Add dependent repositories +sudo dpkg --add-architecture i386 +wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add - +touch /etc/apt/sources.list.d/pika.list +echo 'deb https://ppa.pika-os.com/ lunar main' > /etc/apt/sources.list.d/pika.list +add-apt-repository ppa:pikaos/pika +add-apt-repository ppa:kubuntu-ppa/backports +apt update +# Clone Upstream +wget -nv https://gitlab.freedesktop.org/wayland/wayland/-/archive/1.22.0/wayland-1.22.0.tar.gz +tar -xf ./wayland-1.22.0.tar.gz +cp -rvf ./debian ./wayland-1.22.0/ +cd ./wayland-1.22.0/ + +# Get build deps +ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime +DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata +apt-get build-dep -y ./ +debuild -S -uc -us +cd ../ + +apt-get install -y pbuilder debootstrap devscripts debhelper sbuild debhelper ubuntu-dev-tools piuparts + +apt install -y debian-archive-keyring +cp -rvf ./pbuilderrc /etc/pbuilderrc +mkdir -p /var/cache/pbuilder/hook.d/ +cp -rvf ./hooks/* /var/cache/pbuilder/hook.d/ +rm -rf /var/cache/apt/ +mkdir -p /pbuilder-results +DIST=lunar ARCH=i386 pbuilder create --distribution lunar --architecture i386 --debootstrapopts --include=ca-certificates +echo 'starting build' +DIST=lunar ARCH=i386 pbuilder build ./*.dsc --distribution lunar --architecture i386 --debootstrapopts --include=ca-certificates + +# Move the debs to output +mkdir -p ./output +mv /var/cache/pbuilder/result/*.deb ./output/ || sudo mv ../*.deb ./output/ \ No newline at end of file diff --git a/pbuilderrc b/pbuilderrc new file mode 100644 index 0000000..d03e67b --- /dev/null +++ b/pbuilderrc @@ -0,0 +1,6 @@ +USENETWORK=yes +OTHERMIRROR="deb [trusted=yes] http://ppa.pika-os.com/ lunar main" +HOOKDIR="/var/cache/pbuilder/hook.d/" +APTCACHEHARDLINK=no +export DEBIAN_FRONTEND="noninteractive" +#OTHERMIRROR="deb [trusted=yes] https://ppa.pika-os.com/ lunar main" \ No newline at end of file