From 8524be681a7ffbaec8d364335cb8d2c206bc9ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Almeida?= Date: Wed, 8 Nov 2023 17:12:48 +0000 Subject: [PATCH] Added workflow to build the project in Ubuntu, Windows, and macOS (#17) --- .github/workflows/maven.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..f97f40b --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - name: "Checkout capicxx-core-tools" + uses: actions/checkout@v3 + with: + repository: COVESA/capicxx-core-tools + path: capicxx-core-tools + + - name: Set up JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + + - name: Build capicxx-core-tools + run: mvn -f org.genivi.commonapi.core.releng/pom.xml -D target.id=org.genivi.commonapi.core.target clean verify + working-directory: capicxx-core-tools + + - name: Build apicxx-dbus-tools + run: mvn -D COREPATH=capicxx-core-tools -f org.genivi.commonapi.dbus.releng/pom.xml -D target.id=org.genivi.commonapi.dbus.target clean verify