From 18c3d5878447db9ea3730f0dac83f986d3df6a92 Mon Sep 17 00:00:00 2001 From: Levente Hunyadi Date: Wed, 4 Dec 2024 16:40:23 +0100 Subject: [PATCH] Simplify GitHub Actions workflow --- .github/workflows/publish.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6187f26..c74cb33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,15 +20,10 @@ jobs: with: distribution: 'zulu' java-version: '17' - - name: Set up build environment - run: | - cmake -E make_directory ${{github.workspace}}/build - name: Compile C++ sources - working-directory: ${{github.workspace}}/build run: | - cmake .. && make + cmake -B build && cmake --build build - name: Compile and run Java sources - working-directory: ${{github.workspace}} run: | ./launch.sh @@ -49,13 +44,9 @@ jobs: with: distribution: 'zulu' java-version: '17' - - name: Set up build environment - run: | - cmake -E make_directory ${{github.workspace}}/build - name: Compile C++ sources - working-directory: ${{github.workspace}}/build run: | - cmake .. && msbuild javabind.sln + cmake -B build && cmake --build build - name: Compile and run Java sources working-directory: ${{github.workspace}} run: |