Skip to content

Commit

Permalink
Add some sanity checks for components needed by flatpak-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Jun 30, 2024
1 parent d847916 commit d0a95f7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,30 @@ jobs:
run: |
flatpak run --command=ostree org.flatpak.Builder//localtest --version
- name: Check if 7z works
run: |
curl -sL https://github.com/ip7z/7zip/releases/download/24.07/7z2407-src.7z > 7z-src.7z
flatpak run --filesystem=$(pwd) --command=7z org.flatpak.Builder//localtest x -y 7z-src.7z
- name: Check if rpm2cpio works
run: |
curl -sL https://archives.fedoraproject.org/pub/archive/fedora/linux/core/1/x86_64/os/Fedora/RPMS/bash-2.05b-34.x86_64.rpm > bash.rpm
flatpak run --filesystem=$(pwd) --command=rpm2cpio org.flatpak.Builder//localtest bash.rpm|cpio -i -d
- name: Check if git-lfs works
run: |
flatpak run --filesystem=$(pwd) --command=git org.flatpak.Builder//localtest config -f .lfsconfig lfs.url https://lfs.example.com/foo/bar/info/lfs
lfs_url=$(flatpak run --filesystem=$(pwd) --command=git org.flatpak.Builder//localtest lfs env|grep "Endpoint="|sed "s/Endpoint=//g"|sed 's/(auth=none)//g')
if [ "$lfs_url" != "https://lfs.example.com/foo/bar/info/lfs" ]; then
echo "LFS endpoint does not match"
echo $lfs_url
exit 1
fi
- name: Check if svn works
run: |
flatpak run --command=svn org.flatpak.Builder//localtest info --depth empty --show-item revision https://svn.code.sf.net/p/freeimage/svn/
- name: Sanity check the linter
run: |
flatpak run --command=flatpak-builder-lint org.flatpak.Builder//localtest --exceptions manifest org.flatpak.Builder.json
Expand Down

0 comments on commit d0a95f7

Please sign in to comment.