Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/fedora-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: fedora-build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: fedora
runs-on: ubuntu-latest
container:
image: fedora:41

steps:
- uses: actions/checkout@v4
- run: cat /etc/os-release
- name: install dependencies
run: |
dnf -y install alsa-lib-devel ant autoconf automake bc curl gambit-c
dnf -y install gcc gcc-c++ git inkscape ImageMagick-devel
dnf -y install java-17-openjdk-devel libtool libXext-devel make
dnf -y install mesa-libGL-devel mesa-libGLU-devel netpbm-devel patch
dnf -y install perl-FindBin portaudio procps-ng python3-sdkmanager sed
dnf -y install tar tcl-devel texlive tree xorg-x11-server-Xvfb wget zip
- name: prepare lambdanative
run : |
# Make directory to avoid errors during build
mkdir -p /github/home/.cache/lambdanative
cp SETUP.template SETUP
cp PROFILE.template PROFILE
./configure Calculator linux
- name: smoke tests
run: |
sh make.sh smoke
20 changes: 15 additions & 5 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,12 @@ make_artwork()
fi
fi
asserttool $inkscape
veval "$inkscape -z $svgsrc -w 1200 -e $pngtgt"
inkscapemajorversion=`inkscape --version | cut -d' ' -f2 | cut -d'.' -f1`
if [ $inkscapemajorversion -ge 1 ]; then
veval "$inkscape -z $svgsrc -w 1200 -o $pngtgt"
else
veval "$inkscape -z $svgsrc -w 1200 -e $pngtgt"
fi
fi
else
if [ "X$epssrc" = "X" ]; then
Expand Down Expand Up @@ -1522,11 +1527,11 @@ smoke_one()
result=$?
if [ ! "X$result" = "X0" ]; then
smoke_result $smoker "**FAIL"
echo "ERROR: make failed"
echo "ERROR: make executable failed"
return
fi
fi
appdir=`ls -1d $SYS_HOSTPREFIX/${SYS_APPNAME}${SYS_APPFIX}`
appexe=`ls -1 $SYS_HOSTPREFIX/${SYS_APPNAME}${SYS_APPFIX}/${SYS_APPNAME}*`
appexe=`ls -1 $SYS_HOSTPREFIX/${SYS_APPNAME}${SYS_APPFIX}/${SYS_APPNAME}`
appexelocal="./"`basename $appexe`
if [ "X$appexe" = "X" ] || [ ! -x "$appexe" ]; then
smoke_result $smoker "**FAIL"
Expand All @@ -1545,7 +1550,12 @@ smoke_one()
) &
here=`pwd`
cd "$appdir"
$appexelocal
if [ `havetool xvfb-run` = yes ]; then
runapp=`xvfb-run $appexelocal`
else
runapp=`$appexelocal`
fi
$runapp
res=$?
cd $here
if [ $res = 0 ] || [ $res = 137 ]; then
Expand Down