-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Verify external installation on main
which does not checkout the repo at all, but only accesses it via github pages.
- Loading branch information
1 parent
d0420b8
commit 0b116d1
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
.github/workflows/ci_ubuntu_verify_external_installation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI ubuntu verify external installation | ||
'on': | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
fetch_installations_externally: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
cm_versions: ${{ steps.extract-versions.outputs.cm_versions }} | ||
steps: | ||
- name: Install maintainer publickey | ||
run: curl -s --compressed https://vorausrobotik.github.io/wibu-packages/ubuntu/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] https://vorausrobotik.github.io/wibu-packages/ubuntu/ ./" | sudo tee /etc/apt/sources.list.d/voraus-wibu.list | ||
- name: update apt | ||
run: sudo apt-get update | ||
- name: Get available versions of c-lite | ||
id: get_versions | ||
run: | | ||
apt-cache madison codemeter-lite | grep "https://vorausrobotik.github.io/wibu-packages/ubuntu" | awk '{print $3}' > versions.txt | ||
cat versions.txt | ||
- name: Extract lines from versions.txt | ||
id: extract-versions | ||
run: | | ||
versions=$(cat versions.txt | jq -R -s -c 'split("\n") | map(select(. != ""))') | ||
echo "cm_versions=$versions" >> $GITHUB_OUTPUT | ||
package_is_installable_externally: | ||
runs-on: ubuntu-latest | ||
needs: fetch_installations | ||
strategy: | ||
matrix: | ||
version: ${{ fromJson(needs.fetch_installations.outputs.cm_versions) }} | ||
steps: | ||
- name: Install maintainer publickey | ||
run: curl -s --compressed https://vorausrobotik.github.io/wibu-packages/ubuntu/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] https://vorausrobotik.github.io/wibu-packages/ubuntu/ ./" | sudo tee /etc/apt/sources.list.d/voraus-wibu.list | ||
- name: Update apt | ||
run: sudo apt-get update | ||
- name: Install codemeter-lite in version ${{ matrix.version }} | ||
run: sudo apt-get install -y codemeter-lite=${{ matrix.version }} | ||
- name: Codemeter is running | ||
run: systemctl status codemeter | ||
- name: Codemeter version output is expected | ||
run: cmu --version | grep -q '${{ matrix.version }}' | ||
- name: Verify codemeter service is running as daemon user | ||
run: systemctl show -pUser codemeter.service | grep -qx User=daemon |