Merge pull request #1268 from mariusgreuel/pr-update-actions
Update GitHub actions
This commit is contained in:
commit
e226add045
|
@ -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: |
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -35,6 +35,42 @@
|
||||||
"type": "BOOL"
|
"type": "BOOL"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x86-Debug",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"configurationType": "Debug",
|
||||||
|
"buildRoot": "${projectDir}\\out\\build\\${name}",
|
||||||
|
"installRoot": "${projectDir}\\out\\install\\${name}",
|
||||||
|
"cmakeCommandArgs": "",
|
||||||
|
"buildCommandArgs": "",
|
||||||
|
"ctestCommandArgs": "",
|
||||||
|
"inheritEnvironments": [ "msvc_x86" ],
|
||||||
|
"variables": [
|
||||||
|
{
|
||||||
|
"name": "USE_EXTERNAL_LIBS",
|
||||||
|
"value": "true",
|
||||||
|
"type": "BOOL"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x86-Release",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"configurationType": "RelWithDebInfo",
|
||||||
|
"buildRoot": "${projectDir}\\out\\build\\${name}",
|
||||||
|
"installRoot": "${projectDir}\\out\\install\\${name}",
|
||||||
|
"cmakeCommandArgs": "",
|
||||||
|
"buildCommandArgs": "",
|
||||||
|
"ctestCommandArgs": "",
|
||||||
|
"inheritEnvironments": [ "msvc_x86" ],
|
||||||
|
"variables": [
|
||||||
|
{
|
||||||
|
"name": "USE_EXTERNAL_LIBS",
|
||||||
|
"value": "true",
|
||||||
|
"type": "BOOL"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue