Skip to content

Commit

Permalink
Fix dependency in CI for fedora.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Dec 21, 2024
1 parent fd58464 commit ac53072
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fedora-40-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test:

needs: build
runs-on: ubuntu-22.04

steps:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/fedora-41-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test:

needs: build
runs-on: ubuntu-22.04

steps:
Expand All @@ -86,19 +86,19 @@ jobs:
fedora:41 \
bash -c "
dnf install -y xorg-x11-server-Xvfb wget curl
export VERSION=$(curl -s https://api.github.com/repos/kpeeters/cadabra2/releases|& jq .[0].tag_name -r)
export RPMNAME=cadabra2-${VERSION}-fedora41.rpm
wget https://github.com/kpeeters/cadabra2/releases/download/${VERSION}/${RPMNAME}
dnf install ${RPMNAME}
export VERSION=\$(curl -s https://api.github.com/repos/kpeeters/cadabra2/releases|& jq .[0].tag_name -r)
export RPMNAME=cadabra2-\${VERSION}-fedora41.rpm
wget https://github.com/kpeeters/cadabra2/releases/download/\${VERSION}/\${RPMNAME}
dnf install \${RPMNAME}
printf 'import sys\nprint(sys.path)\nimport cdb.main\nex:=(A+B) (C+D);\ndistribute(ex);\nquit()\n' > tst.cdb
cadabra2 tst.cdb
xvfb-run -a cadabra2-gtk &
APP_PID=$!
APP_PID=\$!
sleep 10
if kill -0 $APP_PID 2>/dev/null; then
if kill -0 \$APP_PID 2>/dev/null; then
echo 'cadabra2-gtk started successfully'
kill $APP_PID
kill \$APP_PID
exit 0
else
echo 'cadabra2-gtk failed to start'
Expand Down

0 comments on commit ac53072

Please sign in to comment.