From 772a79ce0386ec699541f3b1c3a4ad16084ce4e5 Mon Sep 17 00:00:00 2001 From: William Lee Date: Tue, 25 Jun 2024 18:57:30 +0800 Subject: [PATCH] (MOD) Changed default shell from "bash" to "sh" in github action file. --- .github/workflows/cmake-multi-platform.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 5a33a0b..eb23acc 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -49,7 +49,7 @@ jobs: - name: Set reusable strings # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. id: strings - shell: bash + shell: sh run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" @@ -61,11 +61,11 @@ jobs: -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - -S ${{ github.workspace }} + -S /usr/lib/libcompound.so - name: PreInstall # Perform pre-installation. - run: sudo bash ./preinstall + run: sudo ./preinstall - name: Build # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). @@ -73,7 +73,7 @@ jobs: - name: PostInstall # Perform post-installation. - run: sudo bash ./postinstall + run: sudo ./postinstall - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }}