Skip to content

Commit

Permalink
Update github workflow actions (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd authored Aug 12, 2024
1 parent 9bcecd9 commit 3b50a84
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 39 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,50 +86,50 @@ jobs:
timeout-minutes: 1440
steps:
- name: Retrieve Code
uses: actions/checkout@v3
uses: actions/checkout@main
with:
ref: ${{ inputs.branch }}
if: ${{ inputs.testing == 'True' }}

- name: Retrieve Recipe
uses: actions/checkout@v3
uses: actions/checkout@main
with:
repository: eBay/Homestore
ref: ${{ inputs.branch }}
if: ${{ inputs.testing == 'False' }}

- name: Load Homestore Cache
id: restore-cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
testing: ${{ inputs.testing }}
key_prefix: HomestoreDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}

- name: Load Sisl Cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
load_any: 'True'
key_prefix: SislDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Retrieve Dependencies
uses: actions/checkout@v3
uses: actions/checkout@main
with:
repository: eBay/iomanager
path: import/iomgr
ref: master
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Retrieve Dependencies
uses: actions/checkout@v3
uses: actions/checkout@main
with:
repository: eBay/nuraft_mesg
path: import/nuraft_mesg
ref: main
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Load IOMgr Cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
testing: 'False'
path: import/iomgr
Expand All @@ -138,7 +138,7 @@ jobs:
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Load NuraftMesg Cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
testing: 'False'
path: import/nuraft_mesg
Expand All @@ -147,7 +147,7 @@ jobs:
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Setup Conan
uses: eBay/sisl/.github/actions/setup_conan@stable/v8.x
uses: eBay/sisl/.github/actions/setup_conan@master
with:
platform: ${{ inputs.platform }}
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}
Expand Down Expand Up @@ -177,20 +177,20 @@ jobs:
if: ${{ steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Save Conan Cache
uses: eBay/sisl/.github/actions/store_conan@stable/v8.x
uses: eBay/sisl/.github/actions/store_conan@master
with:
key_prefix: HomestoreDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
if: ${{ github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Reload Sisl Cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
load_any: 'True'
key_prefix: SislDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
if: ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Reload IOMgr Cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
testing: 'False'
path: import/iomgr
Expand All @@ -199,15 +199,15 @@ jobs:
if: ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Reload NuraftMesg Cache
uses: eBay/sisl/.github/actions/load_conan@stable/v8.x
uses: eBay/sisl/.github/actions/load_conan@master
with:
testing: 'False'
path: import/nuraft_mesg
key_prefix: NuMesgDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
fail_on_cache_miss: true
if: ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}

- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov: true
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/version_change_check

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/version_change_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@main
with:
fetch-depth: 2
- name: Check if file is modified
Expand Down

0 comments on commit 3b50a84

Please sign in to comment.