Skip to content

Mish and GELU

Mish and GELU #15

Workflow file for this run

name: Tests
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Free Pascal Compiler and LCL
run: |
sudo apt-get update
sudo apt-get install -y fpc lcl
- name: Find LazUtils path
id: lazutils
run: |
# Find the correct LazUtils path for the installed version
# Search in common Lazarus installation locations
LAZUTILS_PATH=$(find /usr/lib/lazarus /usr/share/lazarus -name "utf8process.ppu" -printf "%h\n" 2>/dev/null | head -1)
if [ -z "$LAZUTILS_PATH" ]; then
echo "Warning: LazUtils not found, falling back to basic tests only"
echo "path=" >> $GITHUB_OUTPUT
echo "found=false" >> $GITHUB_OUTPUT
else
echo "Found LazUtils at: ${LAZUTILS_PATH}"
echo "path=${LAZUTILS_PATH}" >> $GITHUB_OUTPUT
echo "found=true" >> $GITHUB_OUTPUT
fi
- name: Build Tests
run: |
mkdir -p bin
cd tests
if [ -n "${{ steps.lazutils.outputs.path }}" ]; then
fpc -Mobjfpc -Fu../neural -Fu${{ steps.lazutils.outputs.path }} -FE../bin -o../bin/RunTests RunTests.lpr
else
echo "Building without LazUtils - threading tests will be skipped"
fpc -Mobjfpc -Fu../neural -FE../bin -o../bin/RunTests RunTests.lpr
fi
- name: Run Tests
run: |
cd bin
./RunTests --all --format=plain