Composite actions must have a shell defined in each step

This commit is contained in:
Bart Thomee
2025-07-26 19:13:06 -04:00
parent d283eb1287
commit 71336d8f19
3 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ runs:
using: composite
steps:
- name: CMake configure
shell: bash
working-directory: ${{ inputs.build_dir }}
run: |
cmake \
@@ -41,6 +42,7 @@ runs:
${{ inputs.cmake_args }} \
..
- name: CMake build
shell: bash
working-directory: ${{ inputs.build_dir }}
run: |
cmake --build . \

View File

@@ -27,16 +27,19 @@ runs:
using: composite
steps:
- name: Check configuration
shell: bash
run: |
echo "Checking Conan version."
conan --version
- name: Install Conan profile
shell: bash
run: |
echo "${{ inputs.conan_global_conf }}" >> $(conan config home)/global.conf
conan config install conan/profiles/default -tf $(conan config home)/profiles/
echo "Installed Conan profile:"
conan profile show
- name: Add Conan remote
shell: bash
run: |
# Remove the remote if it already exists. This can occur on self-hosted
# runners where the workspace is not cleaned up between runs.
@@ -47,6 +50,7 @@ runs:
conan remote add --index 0 ${{ inputs.conan_remote_name }} ${{ inputs.conan_remote_url }}
echo "Added new conan remote '${{ inputs.conan_remote_name }}' at ${{ inputs.conan_remote_url }}."
- name: Log into Conan remote
shell: bash
run: |
conan remote login ${{ inputs.conan_remote_name }} ${{ inputs.conan_remote_username }} --password "${{ inputs.conan_remote_password }}"
conan remote list-users

View File

@@ -26,6 +26,7 @@ runs:
using: composite
steps:
- name: Install Conan dependencies
shell: bash
run: |
mkdir -p ${{ inputs.build_dir }}
cd ${{ inputs.build_dir }}
@@ -37,4 +38,5 @@ runs:
--settings:all build_type=${{ inputs.build_type }} \
..
- name: Upload Conan dependencies
shell: bash
run: conan upload '*' --confirm --check --remote ${{ inputs.conan_remote_name }}