GitHub action for installing free pascal compiler. Works on Linux, Windows and macOS runners.
- name: Setup
uses: visualdoj/setup-fpc@main
- name: Compile
run: fpc hello.pas
- name: Run
run: "${{ github.workspace }}/hello"
Also visit repository visualdoj/hello-fpc to see an example in action.