From 20350d7106baefa163c73d186067c54dd5fd7a74 Mon Sep 17 00:00:00 2001 From: Jan-Niklas Burfeind Date: Thu, 5 Sep 2024 10:51:32 +0200 Subject: [PATCH] ci: Install the repo and codemeter-lite --- .github/workflows/ci.yml | 2 ++ .../ci_ubuntu_verify_installation.yml | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/ci_ubuntu_verify_installation.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aed3ab9..8182283 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,3 +7,5 @@ name: CI jobs: ubuntu_verify_repo: uses: ./.github/workflows/ci_ubuntu_verify_repo.yml + ubuntu_verify_installation: + uses: ./.github/workflows/ci_ubuntu_verify_installation.yml diff --git a/.github/workflows/ci_ubuntu_verify_installation.yml b/.github/workflows/ci_ubuntu_verify_installation.yml new file mode 100644 index 0000000..98c8d4d --- /dev/null +++ b/.github/workflows/ci_ubuntu_verify_installation.yml @@ -0,0 +1,24 @@ +name: CI ubuntu verify installation +'on': + workflow_call: null +jobs: + package_is_installable: + runs-on: ubuntu-latest + steps: + - name: Checkout (GitHub) + uses: actions/checkout@v4 + - name: Provide the repo locally via http + run: nohup python3 -m http.server 8080 & + working-directory: ./ubuntu/ + - name: Install maintainer publickey + run: curl -s --compressed http://localhost:8080/burfeind_jan-niklas.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/burfeind_jan-niklas.gpg + - name: Add local repo to APT sources + run: echo "deb [signed-by=/etc/apt/trusted.gpg.d/burfeind_jan-niklas.gpg] http://localhost:8080 ./" | sudo tee /etc/apt/sources.list.d/localrepo.list + - name: Update apt + run: sudo apt-get update + - name: Install codemeter-lite + run: sudo apt-get install -y codemeter-lite + - name: Kill the webserver again + run: sudo pkill python3 + - name: Codemeter is running + run: systemctl status codemeter