Upgrade actions to newer versions (#1262)

Fixes #1245
This commit is contained in:
Alex Kremer
2024-03-14 10:49:43 +00:00
committed by GitHub
parent 9fa1740146
commit c17cc37c1c
7 changed files with 17 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ runs:
gcovr -e unittests --xml build/coverage_report.xml -j8 --exclude-throw-branches gcovr -e unittests --xml build/coverage_report.xml -j8 --exclude-throw-branches
- name: Archive coverage report - name: Archive coverage report
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: coverage-report.xml name: coverage-report.xml
path: build/coverage_report.xml path: build/coverage_report.xml

View File

@@ -44,14 +44,14 @@ runs:
echo "hash=$hash" >> $GITHUB_OUTPUT echo "hash=$hash" >> $GITHUB_OUTPUT
- name: Restore conan cache - name: Restore conan cache
uses: actions/cache/restore@v3 uses: actions/cache/restore@v4
id: conan_cache id: conan_cache
with: with:
path: ${{ inputs.conan_dir }}/data path: ${{ inputs.conan_dir }}/data
key: clio-conan_data-${{ runner.os }}-${{ inputs.build_type }}-develop-${{ steps.conan_hash.outputs.hash }} key: clio-conan_data-${{ runner.os }}-${{ inputs.build_type }}-develop-${{ steps.conan_hash.outputs.hash }}
- name: Restore ccache cache - name: Restore ccache cache
uses: actions/cache/restore@v3 uses: actions/cache/restore@v4
id: ccache_cache id: ccache_cache
if: ${{ env.CCACHE_DISABLE != '1' }} if: ${{ env.CCACHE_DISABLE != '1' }}
with: with:

View File

@@ -41,14 +41,14 @@ runs:
- name: Save conan cache - name: Save conan cache
if: ${{ inputs.conan_cache_hit != 'true' }} if: ${{ inputs.conan_cache_hit != 'true' }}
uses: actions/cache/save@v3 uses: actions/cache/save@v4
with: with:
path: ${{ inputs.conan_dir }}/data path: ${{ inputs.conan_dir }}/data
key: clio-conan_data-${{ runner.os }}-${{ inputs.build_type }}-develop-${{ inputs.conan_hash }} key: clio-conan_data-${{ runner.os }}-${{ inputs.build_type }}-develop-${{ inputs.conan_hash }}
- name: Save ccache cache - name: Save ccache cache
if: ${{ inputs.ccache_cache_hit != 'true' || inputs.ccache_cache_miss_rate == '100.0' }} if: ${{ inputs.ccache_cache_hit != 'true' || inputs.ccache_cache_miss_rate == '100.0' }}
uses: actions/cache/save@v3 uses: actions/cache/save@v4
with: with:
path: ${{ inputs.ccache_dir }} path: ${{ inputs.ccache_dir }}
key: clio-ccache-${{ runner.os }}-${{ inputs.build_type }}${{ inputs.code_coverage == 'true' && '-code_coverage' || '' }}-develop-${{ steps.git_common_ancestor.outputs.commit }} key: clio-ccache-${{ runner.os }}-${{ inputs.build_type }}${{ inputs.code_coverage == 'true' && '-code_coverage' || '' }}-develop-${{ steps.git_common_ancestor.outputs.commit }}

View File

@@ -123,14 +123,14 @@ jobs:
run: strip build/clio_tests run: strip build/clio_tests
- name: Upload clio_server - name: Upload clio_server
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: clio_server_${{ runner.os }}_${{ matrix.build_type }} name: clio_server_${{ runner.os }}_${{ matrix.build_type }}
path: build/clio_server path: build/clio_server
- name: Upload clio_tests - name: Upload clio_tests
if: ${{ !matrix.code_coverage }} if: ${{ !matrix.code_coverage }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: clio_tests_${{ runner.os }} name: clio_tests_${{ runner.os }}
path: build/clio_tests path: build/clio_tests
@@ -179,7 +179,7 @@ jobs:
if: ${{ runner.os == 'macOS' }} if: ${{ runner.os == 'macOS' }}
uses: kuznetsss/workspace-cleanup@1.0 uses: kuznetsss/workspace-cleanup@1.0
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: clio_tests_${{ runner.os }} name: clio_tests_${{ runner.os }}
- name: Run clio_tests - name: Run clio_tests

View File

@@ -24,7 +24,7 @@ jobs:
image: rippleci/clio_ci:latest image: rippleci/clio_ci:latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
lfs: true lfs: true
@@ -34,7 +34,7 @@ jobs:
cmake ../docs && cmake --build . --target docs cmake ../docs && cmake --build . --target docs
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v4
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3

View File

@@ -56,7 +56,7 @@ jobs:
run: strip build/clio_tests run: strip build/clio_tests
- name: Upload clio_tests - name: Upload clio_tests
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: clio_tests_${{ runner.os }}_${{ matrix.build_type }} name: clio_tests_${{ runner.os }}_${{ matrix.build_type }}
path: build/clio_tests path: build/clio_tests
@@ -68,7 +68,7 @@ jobs:
tar czf ./clio_server_${{ runner.os }}_${{ matrix.build_type }}.tar.gz ./clio_server tar czf ./clio_server_${{ runner.os }}_${{ matrix.build_type }}.tar.gz ./clio_server
- name: Upload clio_server - name: Upload clio_server
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: clio_server_${{ runner.os }}_${{ matrix.build_type }} name: clio_server_${{ runner.os }}_${{ matrix.build_type }}
path: build/clio_server_${{ runner.os }}_${{ matrix.build_type }}.tar.gz path: build/clio_server_${{ runner.os }}_${{ matrix.build_type }}.tar.gz
@@ -93,7 +93,7 @@ jobs:
if: ${{ runner.os == 'macOS' }} if: ${{ runner.os == 'macOS' }}
uses: kuznetsss/workspace-cleanup@1.0 uses: kuznetsss/workspace-cleanup@1.0
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: clio_tests_${{ runner.os }}_${{ matrix.build_type }} name: clio_tests_${{ runner.os }}_${{ matrix.build_type }}
@@ -113,7 +113,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
path: nightly_release path: nightly_release

View File

@@ -16,16 +16,16 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Download report artifact - name: Download report artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: coverage-report.xml name: coverage-report.xml
path: build path: build
- name: Upload coverage report - name: Upload coverage report
if: ${{ hashFiles('build/coverage_report.xml') != '' }} if: ${{ hashFiles('build/coverage_report.xml') != '' }}
uses: wandalen/wretry.action@v1.3.0 uses: wandalen/wretry.action@v1.4.10
with: with:
action: codecov/codecov-action@v3 action: codecov/codecov-action@v4
with: | with: |
files: build/coverage_report.xml files: build/coverage_report.xml
fail_ci_if_error: false fail_ci_if_error: false