Skip to content

Commit

Permalink
packages: drop Ubuntu/debian package build
Browse files Browse the repository at this point in the history
Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed May 4, 2024
1 parent cba5b70 commit a72a5f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 80 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,80 +174,7 @@ jobs:
run: ./deploy/build_containers.sh
shell: bash

build-test-commit-debs:
needs: [test-in-docker-container]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Check if tagged
id: check_if_tagged
run: |
otag=$(git tag --points-at HEAD)
echo "Tag is ${otag}"
if [ -z "$otag" ]
then
hastag=0
else
hastag=1
fi
echo "hastag=$hastag" >> $GITHUB_OUTPUT
- name: Update submodules
run: |
git submodule update --init
git pull --recurse-submodules
git submodule update --remote --recursive
shell: bash

- name: Install Dependencies
run: ./deploy/dependencies/install_dependencies_ubuntu.sh
shell: bash

- name: Build deb darkdetect
run: ./deploy/build_packages/build_deb_darkdetect.sh
shell: bash

- name: Build pkgs LenovoLegionLinux
run: |
./deploy/build_packages/build_deb_LLL.sh
shell: bash

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}

- name: Copy and Generate files - Ubuntu
run: |
cd package_repo/ubuntu
gpg --armor --export "${{ secrets.GPG_ID }}" > ./KEY.gpg
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key "${{ secrets.GPG_ID }}" -abs -o - Release > Release.gpg
gpg --default-key "${{ secrets.GPG_ID }}" --clearsign -o - Release > InRelease
echo "deb [signed-by=/usr/share/keyrings/lll-ppa.gpg] https://johnfanv2.github.io/LenovoLegionLinux/package_repo/ubuntu ./" > lll-ppa.list
shell: bash

- name: Commit changes
if: steps.check_if_tagged.outputs.hastag == 1
run: |
git fetch
git add -A
git config user.name github-actions
git config user.email [email protected]
git commit -m "Add new debs"
git pull --rebase
git push
shell: bash

test-packages:
needs: [build-test-commit-debs]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion deploy/package_testing/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ RUN ./deploy/dependencies/install_test_dependencies_ubuntu.sh
# Test: Maybe refactor to run outside of Dockerfile
COPY deploy deploy
COPY tests tests
RUN ./deploy/package_testing/download_install_deb_ppa.sh
RUN ./deploy/package_testing/download_install_debian.sh
#RUN ./tests/test_python_installed.sh
6 changes: 0 additions & 6 deletions deploy/package_testing/download_install_deb_ppa.sh

This file was deleted.

8 changes: 8 additions & 0 deletions deploy/package_testing/download_install_debian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo curl https://ftp.de.debian.org/debian/pool/contrib/l/lenovolegionlinux/lenovolegionlinux-dkms_0.0.10+ds-2_amd64.deb -o /tmp/lenovolegionlinux-dkms_0.0.10+ds-2_amd64.deb
sudo curl https://ftp.de.debian.org/debian/pool/contrib/l/lenovolegionlinux/python3-legion-linux_0.0.10+ds-2_all.deb -o /tmp/python3-legion-linux_0.0.10+ds-2_all.deb
sudo curl https://ftp.de.debian.org/debian/pool/contrib/l/lenovolegionlinux/lenovolegionlinux-dkms_0.0.10+ds-2_amd64.deb -o /tmp/legiond_0.0.10+ds-2_amd64.deb

sudo apt install /tmp/lenovolegionlinux-dkms_0.0.10+ds-2_amd64.deb
sudo apt install /tmp/python3-legion-linux_0.0.10+ds-2_all.deb
sudo apt install /tmp/legiond_0.0.10+ds-2_amd64.deb

0 comments on commit a72a5f2

Please sign in to comment.