CI: update GH actions checkout and cache to silent warnings.

This commit is contained in:
مهدي شينون (Mehdi Chinoune) 2024-04-07 07:11:00 +01:00 committed by GitHub
parent e2459bc86c
commit 30f80cb546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Print system information - name: Print system information
run: | run: |
@ -54,7 +54,7 @@ jobs:
fi fi
- name: Compilation cache - name: Compilation cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.ccache path: ~/.ccache
# We include the commit sha in the cache key, as new cache entries are # We include the commit sha in the cache key, as new cache entries are
@ -200,7 +200,7 @@ jobs:
ccache:p ccache:p
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Prepare ccache - name: Prepare ccache
# Get cache location of ccache # Get cache location of ccache
@ -213,7 +213,7 @@ jobs:
echo "key=ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}-${{ github.sha }}" >> $GITHUB_OUTPUT echo "key=ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}-${{ github.sha }}" >> $GITHUB_OUTPUT
- name: Restore ccache - name: Restore ccache
uses: actions/cache/restore@v3 uses: actions/cache/restore@v4
with: with:
path: ${{ steps.ccache-prepare.outputs.ccachedir }} path: ${{ steps.ccache-prepare.outputs.ccachedir }}
key: ${{ steps.ccache-prepare.outputs.key }} key: ${{ steps.ccache-prepare.outputs.key }}
@ -267,7 +267,7 @@ jobs:
- name: Save ccache - name: Save ccache
# Save the cache after we are done (successfully) building # Save the cache after we are done (successfully) building
uses: actions/cache/save@v3 uses: actions/cache/save@v4
with: with:
path: ${{ steps.ccache-prepare.outputs.ccachedir }} path: ${{ steps.ccache-prepare.outputs.ccachedir }}
key: ${{ steps.ccache-prepare.outputs.key }} key: ${{ steps.ccache-prepare.outputs.key }}
@ -312,7 +312,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Dependencies - name: Install Dependencies
run: | run: |
@ -320,7 +320,7 @@ jobs:
sudo apt-get install -y ccache gcc-${{ matrix.triple }} gfortran-${{ matrix.triple }} libgomp1-${{ matrix.target }}-cross sudo apt-get install -y ccache gcc-${{ matrix.triple }} gfortran-${{ matrix.triple }} libgomp1-${{ matrix.target }}-cross
- name: Compilation cache - name: Compilation cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.ccache path: ~/.ccache
key: ccache-${{ runner.os }}-${{ matrix.target }}-${{ github.ref }}-${{ github.sha }} key: ccache-${{ runner.os }}-${{ matrix.target }}-${{ github.ref }}-${{ github.sha }}