Skip to content

CI: update download and upload artifacts actions to v4 #10

CI: update download and upload artifacts actions to v4

CI: update download and upload artifacts actions to v4 #10

Workflow file for this run

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