diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..bdf9b00 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: Run tests by FPC + +on: + - push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install FPC + run: | + export DEBIAN_FRONTEND=noninteractive + sudo apt-get update + sudo apt-get install -y lazarus + - name: Checkout + uses: actions/checkout@v4 + - name: build + working-directory: ./src/fpc + run: | + make all + - name: run tests + working-directory: ./src/fpc + run: | + make test diff --git a/src/fpc/Makefile b/src/fpc/Makefile index 272a40b..1d5c0c4 100644 --- a/src/fpc/Makefile +++ b/src/fpc/Makefile @@ -1,11 +1,13 @@ -all: +all: lib/x86_64-linux/ArgumentParserTest + +lib/x86_64-linux/ArgumentParserTest: lazbuild ArgumentParserTest.lpr clean: rm -rf lib/ rm -f ArgumentParserTest.xml -test: clean all +test: all lib/x86_64-linux/ArgumentParserTest .PHONY: all clean test