(MOD) Changed default shell from "bash" to "sh" in github action file.

This commit is contained in:
2024-06-25 18:57:30 +08:00
parent 5e05e24e38
commit 772a79ce03

View File

@@ -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 }}