Upgrade to node20 actions e.g @v4

This commit is contained in:
Artem Pavlenko 2024-03-12 13:24:34 +00:00
parent f9b9261d53
commit 6d420b0911
4 changed files with 11 additions and 11 deletions

View file

@ -48,7 +48,7 @@ runs:
working-directory: build/out working-directory: build/out
shell: "pwsh" shell: "pwsh"
run: tar cfvz visual-test-results.tar.gz ./visual-test-result run: tar cfvz visual-test-results.tar.gz ./visual-test-result
- name: Generate run guid - name: Generate run guid
id: run-guid id: run-guid
shell: "pwsh" shell: "pwsh"
@ -57,7 +57,7 @@ runs:
echo ("GUID=" + $guid.toString()) >> $env:GITHUB_OUTPUT echo ("GUID=" + $guid.toString()) >> $env:GITHUB_OUTPUT
- name: Upload visual test results - name: Upload visual test results
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ inputs.cmake-preset }}-visual-tests-${{ steps.run-guid.outputs.GUID }} name: ${{ inputs.cmake-preset }}-visual-tests-${{ steps.run-guid.outputs.GUID }}
path: build/out/visual-test-results.tar.gz path: build/out/visual-test-results.tar.gz
@ -79,12 +79,12 @@ runs:
- name: Upload coverage to Codecov (linux & macos) - name: Upload coverage to Codecov (linux & macos)
if: runner.os != 'Windows' if: runner.os != 'Windows'
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
files: build/coverage.info files: build/coverage.info
- name: Upload coverage to Codecov (windows) - name: Upload coverage to Codecov (windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
files: build/out/mapnik-test-visual.cov files: build/out/mapnik-test-visual.cov

View file

@ -22,7 +22,7 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: checkout vcpkg - name: checkout vcpkg
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: "microsoft/vcpkg" repository: "microsoft/vcpkg"
ref: ${{ inputs.vcpkg-sha }} ref: ${{ inputs.vcpkg-sha }}

View file

@ -18,11 +18,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.10'
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v4
buildAndTest: buildAndTest:
name: >- name: >-
@ -73,7 +73,7 @@ jobs:
if: runner.os == 'Windows' if: runner.os == 'Windows'
- name: checkout mapnik - name: checkout mapnik
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: "recursive" submodules: "recursive"

View file

@ -7,7 +7,7 @@ on:
pull_request: pull_request:
branches-ignore: branches-ignore:
- "no-ci-*" - "no-ci-*"
env: env:
PRESET: linux-ci-release PRESET: linux-ci-release
jobs: jobs:
@ -16,7 +16,7 @@ jobs:
steps: steps:
- name: checkout mapnik - name: checkout mapnik
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
submodules: "recursive" submodules: "recursive"
@ -49,7 +49,7 @@ jobs:
run: cmake --build --preset ${{ env.PRESET }} --target package run: cmake --build --preset ${{ env.PRESET }} --target package
- name: Upload mapnik debian package - name: Upload mapnik debian package
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.PRESET }}-deb name: ${{ env.PRESET }}-deb
path: build/${{ env.PRESET }}/mapnik-*.deb path: build/${{ env.PRESET }}/mapnik-*.deb