ci: GitHub actions updated to not use deprecated versions

This commit is contained in:
Mateusz Pusz
2024-02-22 20:33:58 +01:00
parent 4475bab192
commit 572968f932
5 changed files with 10 additions and 10 deletions

View File

@@ -140,7 +140,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV - run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV
- name: Cache Conan data - name: Cache Conan data
uses: actions/cache@v3 uses: actions/cache@v4
if: always() if: always()
env: env:
cache-name: cache-conan-data cache-name: cache-conan-data
@@ -185,7 +185,7 @@ jobs:
run: | run: |
sudo xcode-select -s /Applications/Xcode_${{ matrix.config.compiler.version }}.app && /usr/bin/xcodebuild -version sudo xcode-select -s /Applications/Xcode_${{ matrix.config.compiler.version }}.app && /usr/bin/xcodebuild -version
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.8" python-version: "3.8"
- name: Install Ninja - name: Install Ninja
@@ -243,7 +243,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.8" python-version: "3.8"
- name: Install Conan - name: Install Conan

View File

@@ -30,7 +30,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python 3.8 - name: Set up Python 3.8
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.8 python-version: 3.8
- name: Install dependencies - name: Install dependencies

View File

@@ -139,7 +139,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV - run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV
- name: Cache Conan data - name: Cache Conan data
uses: actions/cache@v3 uses: actions/cache@v4
if: always() if: always()
env: env:
cache-name: cache-conan-data cache-name: cache-conan-data
@@ -179,7 +179,7 @@ jobs:
run: | run: |
sudo xcode-select -s /Applications/Xcode_${{ matrix.config.compiler.version }}.app && /usr/bin/xcodebuild -version sudo xcode-select -s /Applications/Xcode_${{ matrix.config.compiler.version }}.app && /usr/bin/xcodebuild -version
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.8" python-version: "3.8"
- name: Install Ninja - name: Install Ninja

View File

@@ -82,7 +82,7 @@ jobs:
- run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV - run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV
- name: Cache Conan data - name: Cache Conan data
if: matrix.language == 'cpp' if: matrix.language == 'cpp'
uses: actions/cache@v3 uses: actions/cache@v4
env: env:
cache-name: cache-conan-data cache-name: cache-conan-data
with: with:
@@ -95,7 +95,7 @@ jobs:
build-${{ matrix.os }}- build-${{ matrix.os }}-
- name: Set up Python - name: Set up Python
if: matrix.language == 'cpp' if: matrix.language == 'cpp'
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.8" python-version: "3.8"
- name: Conan build - name: Conan build

View File

@@ -36,11 +36,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3 - uses: actions/cache@v4
with: with:
key: mkdocs-material-${{ env.cache_id }} key: mkdocs-material-${{ env.cache_id }}
path: .cache path: .cache