CI: update download and upload artifacts actions to v4 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: build-${{ matrix.arch }} | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: cmd | |
strategy: | |
matrix: | |
arch: [x64, Win32, ARM64] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: build | |
run: build.cmd ${{ matrix.arch }} | |
- name: upload binaries | |
uses: actions/upload-artifact@v4 | |
with: | |
name: adbwinapi-${{ matrix.arch }} | |
path: build-${{ matrix.arch }}/Release/*.dll | |
- name: upload sources | |
if: contains(matrix.arch, 'x64') | |
uses: actions/upload-artifact@v4 | |
with: | |
name: adbwinapi-sources | |
path: adbwinapi_sources.zip | |
merge: | |
needs: [build] | |
runs-on: windows-latest | |
steps: | |
- name: download arm64 | |
uses: actions/download-artifact@v4 | |
with: | |
name: adbwinapi-ARM64 | |
path: arm64 | |
- name: download win32 | |
uses: actions/download-artifact@v4 | |
with: | |
name: adbwinapi-Win32 | |
path: win32 | |
- name: download x64 | |
uses: actions/download-artifact@v4 | |
with: | |
name: adbwinapi-x64 | |
path: x64 | |
- name: upload merged artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: adbwinapi | |
path: | | |
arm64 | |
win32 | |
x64 |