mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
ci: Specify bash as default shell in workflows (#2772)
This commit is contained in:
@@ -38,6 +38,10 @@ on:
|
|||||||
description: Whether to strip clio binary
|
description: Whether to strip clio binary
|
||||||
default: true
|
default: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_publish_image:
|
build_and_publish_image:
|
||||||
name: Build and publish image
|
name: Build and publish image
|
||||||
@@ -55,7 +59,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Download Clio binary from url
|
- name: Download Clio binary from url
|
||||||
if: ${{ inputs.clio_server_binary_url != null }}
|
if: ${{ inputs.clio_server_binary_url != null }}
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
BINARY_URL: ${{ inputs.clio_server_binary_url }}
|
BINARY_URL: ${{ inputs.clio_server_binary_url }}
|
||||||
BINARY_SHA256: ${{ inputs.binary_sha256 }}
|
BINARY_SHA256: ${{ inputs.binary_sha256 }}
|
||||||
@@ -66,7 +69,6 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- name: Unpack binary
|
- name: Unpack binary
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt update && sudo apt install -y tar unzip
|
sudo apt update && sudo apt install -y tar unzip
|
||||||
cd docker/clio/artifact
|
cd docker/clio/artifact
|
||||||
@@ -83,7 +85,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Strip binary
|
- name: Strip binary
|
||||||
if: ${{ inputs.strip_binary }}
|
if: ${{ inputs.strip_binary }}
|
||||||
shell: bash
|
|
||||||
run: strip ./docker/clio/clio_server
|
run: strip ./docker/clio/clio_server
|
||||||
|
|
||||||
- name: Set GHCR_REPO
|
- name: Set GHCR_REPO
|
||||||
|
|||||||
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -33,6 +33,10 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/develop' && github.run_number || 'branch' }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/develop' && github.run_number || 'branch' }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
@@ -121,7 +125,6 @@ jobs:
|
|||||||
name: clio_server_Linux_Release_gcc
|
name: clio_server_Linux_Release_gcc
|
||||||
|
|
||||||
- name: Compare Config Description
|
- name: Compare Config Description
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
repoConfigFile=docs/config-description.md
|
repoConfigFile=docs/config-description.md
|
||||||
configDescriptionFile=config_description_new.md
|
configDescriptionFile=config_description_new.md
|
||||||
|
|||||||
6
.github/workflows/check-libxrpl.yml
vendored
6
.github/workflows/check-libxrpl.yml
vendored
@@ -12,6 +12,10 @@ concurrency:
|
|||||||
env:
|
env:
|
||||||
CONAN_PROFILE: gcc
|
CONAN_PROFILE: gcc
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Clio / `libXRPL ${{ github.event.client_payload.version }}`
|
name: Build Clio / `libXRPL ${{ github.event.client_payload.version }}`
|
||||||
@@ -30,13 +34,11 @@ jobs:
|
|||||||
disable_ccache: true
|
disable_ccache: true
|
||||||
|
|
||||||
- name: Update libXRPL version requirement
|
- name: Update libXRPL version requirement
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
sed -i.bak -E "s|'xrpl/[a-zA-Z0-9\\.\\-]+'|'xrpl/${{ github.event.client_payload.conan_ref }}'|g" conanfile.py
|
sed -i.bak -E "s|'xrpl/[a-zA-Z0-9\\.\\-]+'|'xrpl/${{ github.event.client_payload.conan_ref }}'|g" conanfile.py
|
||||||
rm -f conanfile.py.bak
|
rm -f conanfile.py.bak
|
||||||
|
|
||||||
- name: Update conan lockfile
|
- name: Update conan lockfile
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
conan lock create . --profile:all ${{ env.CONAN_PROFILE }}
|
conan lock create . --profile:all ${{ env.CONAN_PROFILE }}
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/check-pr-title.yml
vendored
4
.github/workflows/check-pr-title.yml
vendored
@@ -5,6 +5,10 @@ on:
|
|||||||
types: [opened, edited, reopened, synchronize]
|
types: [opened, edited, reopened, synchronize]
|
||||||
branches: [develop]
|
branches: [develop]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_title:
|
check_title:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
8
.github/workflows/clang-tidy.yml
vendored
8
.github/workflows/clang-tidy.yml
vendored
@@ -22,6 +22,10 @@ env:
|
|||||||
CONAN_PROFILE: clang
|
CONAN_PROFILE: clang
|
||||||
LLVM_TOOLS_VERSION: 20
|
LLVM_TOOLS_VERSION: 20
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clang_tidy:
|
clang_tidy:
|
||||||
if: github.event_name != 'push' || contains(github.event.head_commit.message, 'clang-tidy auto fixes')
|
if: github.event_name != 'push' || contains(github.event.head_commit.message, 'clang-tidy auto fixes')
|
||||||
@@ -67,21 +71,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Run clang-tidy
|
- name: Run clang-tidy
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
shell: bash
|
|
||||||
id: run_clang_tidy
|
id: run_clang_tidy
|
||||||
run: |
|
run: |
|
||||||
run-clang-tidy-${{ env.LLVM_TOOLS_VERSION }} -p build -j "${{ steps.nproc.outputs.nproc }}" -fix -quiet 1>output.txt
|
run-clang-tidy-${{ env.LLVM_TOOLS_VERSION }} -p build -j "${{ steps.nproc.outputs.nproc }}" -fix -quiet 1>output.txt
|
||||||
|
|
||||||
- name: Fix local includes and clang-format style
|
- name: Fix local includes and clang-format style
|
||||||
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
|
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
pre-commit run --all-files fix-local-includes || true
|
pre-commit run --all-files fix-local-includes || true
|
||||||
pre-commit run --all-files clang-format || true
|
pre-commit run --all-files clang-format || true
|
||||||
|
|
||||||
- name: Print issues found
|
- name: Print issues found
|
||||||
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
|
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
sed -i '/error\||/!d' ./output.txt
|
sed -i '/error\||/!d' ./output.txt
|
||||||
cat output.txt
|
cat output.txt
|
||||||
@@ -126,5 +127,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Fail the job
|
- name: Fail the job
|
||||||
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
|
if: ${{ steps.run_clang_tidy.outcome != 'success' }}
|
||||||
shell: bash
|
|
||||||
run: exit 1
|
run: exit 1
|
||||||
|
|||||||
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@@ -10,6 +10,10 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@@ -23,6 +23,10 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
|
|||||||
8
.github/workflows/reusable-build.yml
vendored
8
.github/workflows/reusable-build.yml
vendored
@@ -75,6 +75,10 @@ on:
|
|||||||
CODECOV_TOKEN:
|
CODECOV_TOKEN:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
@@ -101,7 +105,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup conan on macOS
|
- name: Setup conan on macOS
|
||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
shell: bash
|
|
||||||
run: ./.github/scripts/conan/init.sh
|
run: ./.github/scripts/conan/init.sh
|
||||||
|
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
@@ -141,7 +144,6 @@ jobs:
|
|||||||
ClangBuildAnalyzer --all build/ build_time_report.bin
|
ClangBuildAnalyzer --all build/ build_time_report.bin
|
||||||
ClangBuildAnalyzer --analyze build_time_report.bin > build_time_report.txt
|
ClangBuildAnalyzer --analyze build_time_report.bin > build_time_report.txt
|
||||||
cat build_time_report.txt
|
cat build_time_report.txt
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Upload build time analyze report
|
- name: Upload build time analyze report
|
||||||
if: ${{ inputs.analyze_build_time }}
|
if: ${{ inputs.analyze_build_time }}
|
||||||
@@ -152,7 +154,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Show ccache's statistics
|
- name: Show ccache's statistics
|
||||||
if: ${{ inputs.download_ccache }}
|
if: ${{ inputs.download_ccache }}
|
||||||
shell: bash
|
|
||||||
id: ccache_stats
|
id: ccache_stats
|
||||||
run: |
|
run: |
|
||||||
ccache -s > /tmp/ccache.stats
|
ccache -s > /tmp/ccache.stats
|
||||||
@@ -220,7 +221,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify expected version
|
- name: Verify expected version
|
||||||
if: ${{ inputs.expected_version != '' }}
|
if: ${{ inputs.expected_version != '' }}
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
INPUT_EXPECTED_VERSION: ${{ inputs.expected_version }}
|
INPUT_EXPECTED_VERSION: ${{ inputs.expected_version }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
9
.github/workflows/reusable-release.yml
vendored
9
.github/workflows/reusable-release.yml
vendored
@@ -38,6 +38,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: heavy
|
runs-on: heavy
|
||||||
@@ -66,7 +70,6 @@ jobs:
|
|||||||
pattern: clio_server_*
|
pattern: clio_server_*
|
||||||
|
|
||||||
- name: Create release notes
|
- name: Create release notes
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
RELEASE_HEADER: ${{ inputs.header }}
|
RELEASE_HEADER: ${{ inputs.header }}
|
||||||
run: |
|
run: |
|
||||||
@@ -75,7 +78,6 @@ jobs:
|
|||||||
printf '%s\n' "${RELEASE_HEADER}" >> "${RUNNER_TEMP}/release_notes.md"
|
printf '%s\n' "${RELEASE_HEADER}" >> "${RUNNER_TEMP}/release_notes.md"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
shell: bash
|
|
||||||
if: ${{ inputs.generate_changelog }}
|
if: ${{ inputs.generate_changelog }}
|
||||||
run: |
|
run: |
|
||||||
LAST_TAG="$(gh release view --json tagName -q .tagName --repo XRPLF/clio)"
|
LAST_TAG="$(gh release view --json tagName -q .tagName --repo XRPLF/clio)"
|
||||||
@@ -85,7 +87,6 @@ jobs:
|
|||||||
cat CHANGELOG.md >> "${RUNNER_TEMP}/release_notes.md"
|
cat CHANGELOG.md >> "${RUNNER_TEMP}/release_notes.md"
|
||||||
|
|
||||||
- name: Prepare release artifacts
|
- name: Prepare release artifacts
|
||||||
shell: bash
|
|
||||||
run: .github/scripts/prepare-release-artifacts.sh release_artifacts
|
run: .github/scripts/prepare-release-artifacts.sh release_artifacts
|
||||||
|
|
||||||
- name: Upload release notes
|
- name: Upload release notes
|
||||||
@@ -96,7 +97,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Remove previous release with a pattern
|
- name: Remove previous release with a pattern
|
||||||
if: ${{ github.event_name != 'pull_request' && inputs.delete_pattern != '' }}
|
if: ${{ github.event_name != 'pull_request' && inputs.delete_pattern != '' }}
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
DELETE_PATTERN: ${{ inputs.delete_pattern }}
|
DELETE_PATTERN: ${{ inputs.delete_pattern }}
|
||||||
run: |
|
run: |
|
||||||
@@ -110,7 +110,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ inputs.version }}
|
RELEASE_VERSION: ${{ inputs.version }}
|
||||||
PRERELEASE_OPTION: ${{ inputs.prerelease && '--prerelease' || '' }}
|
PRERELEASE_OPTION: ${{ inputs.prerelease && '--prerelease' || '' }}
|
||||||
|
|||||||
6
.github/workflows/reusable-test.yml
vendored
6
.github/workflows/reusable-test.yml
vendored
@@ -33,6 +33,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit_tests:
|
unit_tests:
|
||||||
name: Unit testing
|
name: Unit testing
|
||||||
@@ -59,7 +63,6 @@ jobs:
|
|||||||
name: clio_tests_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
|
name: clio_tests_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
|
||||||
|
|
||||||
- name: Make clio_tests executable
|
- name: Make clio_tests executable
|
||||||
shell: bash
|
|
||||||
run: chmod +x ./clio_tests
|
run: chmod +x ./clio_tests
|
||||||
|
|
||||||
- name: Run clio_tests (regular)
|
- name: Run clio_tests (regular)
|
||||||
@@ -72,7 +75,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Check for sanitizer report
|
- name: Check for sanitizer report
|
||||||
if: ${{ env.SANITIZER_IGNORE_ERRORS == 'true' }}
|
if: ${{ env.SANITIZER_IGNORE_ERRORS == 'true' }}
|
||||||
shell: bash
|
|
||||||
id: check_report
|
id: check_report
|
||||||
run: |
|
run: |
|
||||||
if ls .sanitizer-report/* 1> /dev/null 2>&1; then
|
if ls .sanitizer-report/* 1> /dev/null 2>&1; then
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ on:
|
|||||||
CODECOV_TOKEN:
|
CODECOV_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload_report:
|
upload_report:
|
||||||
name: Upload report
|
name: Upload report
|
||||||
|
|||||||
4
.github/workflows/update-docker-ci.yml
vendored
4
.github/workflows/update-docker-ci.yml
vendored
@@ -33,6 +33,10 @@ env:
|
|||||||
GCC_MAJOR_VERSION: 15
|
GCC_MAJOR_VERSION: 15
|
||||||
GCC_VERSION: 15.2.0
|
GCC_VERSION: 15.2.0
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
repo:
|
repo:
|
||||||
name: Calculate repo name
|
name: Calculate repo name
|
||||||
|
|||||||
5
.github/workflows/upload-conan-deps.yml
vendored
5
.github/workflows/upload-conan-deps.yml
vendored
@@ -40,6 +40,10 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-matrix:
|
generate-matrix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -78,7 +82,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup conan on macOS
|
- name: Setup conan on macOS
|
||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
shell: bash
|
|
||||||
run: ./.github/scripts/conan/init.sh
|
run: ./.github/scripts/conan/init.sh
|
||||||
|
|
||||||
- name: Show conan profile
|
- name: Show conan profile
|
||||||
|
|||||||
Reference in New Issue
Block a user