Github actions compilation failed

How to add this network library in GitHub compilation

Use GitHub Actions steps to download and unpack Indy. The command-line example on our Indy docs may be useful. Basically, you need a step like this in your GitHub Actions workflow:

- name: Download and unpack Indy
  run: |
    wget http://packages.lazarus-ide.org/Indy10.zip
    unzip Indy10.zip

In effect, your workspace will have Indy units in Indy10 subdirectory (to be sure, just add a debug command, like ls -FlahR as GitHub Actions step).

Now make your CastleEngineManifest.xml refer to units in Indy10/, e.g. by

...
<?xml version="1.0" encoding="utf-8"?>
<project  ...>
  ...
  <compiler_options>
    <search_paths>
      ...
      <path value="Indy10/Core" />
      <path value="Indy10/System" />
    </search_paths>
  </compiler_options>
</project>

Either just commit + push to repo already CastleEngineManifest.xml with paths to Indy10, or use sed to process you CastleEngineManifest.xml within GitHub Actions.

Thank you very much for providing the idea. This is testing the normal code

      - name: Download and unpack Indy
        run: wget http://packages.lazarus-ide.org/Indy10.zip
      - name: Unzip File
        run: unzip Indy10.zip -d $GITHUB_WORKSPACE/./
1 Like