Skip to content

Commit

Permalink
setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tokibito committed Aug 15, 2024
1 parent d95e7d9 commit b228bbd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions src/fpc/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b228bbd

Please sign in to comment.