GitHub actions: Use latest versions to remove warning 'Node.js 12 actions are deprecated'

This commit is contained in:
Marius Greuel 2023-01-05 16:25:08 +01:00
parent 0b9999610c
commit 739d3f85c3
2 changed files with 15 additions and 22 deletions

View File

@ -34,7 +34,7 @@ jobs:
linux-x86_64: linux-x86_64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install prerequisites - name: Install prerequisites
run: >- run: >-
sudo apt-get update sudo apt-get update
@ -66,7 +66,7 @@ jobs:
run: cmake --build build run: cmake --build build
- name: Archive build artifacts - name: Archive build artifacts
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: build-linux-x86_64 name: build-linux-x86_64
path: | path: |
@ -74,7 +74,7 @@ jobs:
!**/*.d !**/*.d
!**/*.o !**/*.o
- name: Archive executables - name: Archive executables
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: avrdude-linux-x86_64 name: avrdude-linux-x86_64
path: | path: |
@ -91,7 +91,7 @@ jobs:
- { arch: armhf, processor: armhf, prefix: arm-linux-gnueabihf, inc-lib: arm-linux-gnueabihf } - { arch: armhf, processor: armhf, prefix: arm-linux-gnueabihf, inc-lib: arm-linux-gnueabihf }
- { arch: arm64, processor: aarch64, prefix: aarch64-linux-gnu, inc-lib: aarch64-linux-gnu } - { arch: arm64, processor: aarch64, prefix: aarch64-linux-gnu, inc-lib: aarch64-linux-gnu }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Add architecture - name: Add architecture
run: | run: |
dpkg --add-architecture ${{matrix.arch}} dpkg --add-architecture ${{matrix.arch}}
@ -130,7 +130,7 @@ jobs:
run: cmake --build build run: cmake --build build
- name: Archive build artifacts - name: Archive build artifacts
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: build-linux-${{matrix.processor}} name: build-linux-${{matrix.processor}}
path: | path: |
@ -138,7 +138,7 @@ jobs:
!**/*.d !**/*.d
!**/*.o !**/*.o
- name: Archive executables - name: Archive executables
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: avrdude-linux-${{matrix.processor}} name: avrdude-linux-${{matrix.processor}}
path: | path: |
@ -148,7 +148,7 @@ jobs:
macos-x86_64: macos-x86_64:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install prerequisites - name: Install prerequisites
run: >- run: >-
# brew update # brew update
@ -174,7 +174,7 @@ jobs:
run: cmake --build build run: cmake --build build
- name: Archive build artifacts - name: Archive build artifacts
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: build-macos-x86_64 name: build-macos-x86_64
path: | path: |
@ -182,7 +182,7 @@ jobs:
!**/*.d !**/*.d
!**/*.o !**/*.o
- name: Archive executables - name: Archive executables
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: avrdude-macos-x86_64 name: avrdude-macos-x86_64
path: | path: |
@ -198,7 +198,7 @@ jobs:
- { arch: x64, platform: x64 } - { arch: x64, platform: x64 }
- { arch: arm64, platform: ARM64 } - { arch: arm64, platform: ARM64 }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install prerequisites - name: Install prerequisites
# As Chocolatey is notoriously unreliable, install winflexbison3 directly from GitHub. # As Chocolatey is notoriously unreliable, install winflexbison3 directly from GitHub.
# run: choco install winflexbison3 # run: choco install winflexbison3
@ -223,7 +223,7 @@ jobs:
run: cmake --build build --config ${{env.BUILD_TYPE}} run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Archive build artifacts - name: Archive build artifacts
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: build-msvc-${{matrix.arch}} name: build-msvc-${{matrix.arch}}
path: | path: |
@ -235,7 +235,7 @@ jobs:
mv build/src/RelWithDebInfo/avrdude.exe build/src mv build/src/RelWithDebInfo/avrdude.exe build/src
mv build/src/RelWithDebInfo/avrdude.pdb build/src mv build/src/RelWithDebInfo/avrdude.pdb build/src
- name: Archive executables - name: Archive executables
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: avrdude-msvc-${{matrix.arch}} name: avrdude-msvc-${{matrix.arch}}
path: | path: |
@ -254,7 +254,7 @@ jobs:
- { sys: mingw32, env: i686 } - { sys: mingw32, env: i686 }
- { sys: mingw64, env: x86_64 } - { sys: mingw64, env: x86_64 }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
with: with:
msystem: ${{matrix.sys}} msystem: ${{matrix.sys}}
@ -279,13 +279,13 @@ jobs:
run: cmake --build build run: cmake --build build
- name: Archive build artifacts - name: Archive build artifacts
if: always() if: always()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: build-mingw-${{matrix.env}} name: build-mingw-${{matrix.env}}
path: | path: |
build/ build/
- name: Archive executables - name: Archive executables
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: avrdude-mingw-${{matrix.env}} name: avrdude-mingw-${{matrix.env}}
path: | path: |

View File

@ -76,10 +76,3 @@ jobs:
asset_path: ./asset.zip asset_path: ./asset.zip
asset_name: avrdude-${{github.ref_name}}-windows-${{matrix.arch}}.zip asset_name: avrdude-${{github.ref_name}}-windows-${{matrix.arch}}.zip
asset_content_type: application/zip asset_content_type: application/zip
#deploy:
# needs: [asset-msvc]
# runs-on: ubuntu-latest
# steps:
# - name: Create package (Chocolatey)
# run: echo TODO