-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (44 loc) · 1.43 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
env:
SOLUTION_FILE_PATH: .\build\RockchipDrivers.sln
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
PLATFORM: [ARM64]
CONFIGURATION: [Debug, Release]
env:
DRIVER_OUTPUT_DIR: build\${{matrix.PLATFORM}}\${{matrix.CONFIGURATION}}\Output
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build solution
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.CONFIGURATION}} /p:Platform=${{matrix.PLATFORM}} ${{env.SOLUTION_FILE_PATH}}
- name: Bundle symbols
run: |
Get-ChildItem -Path $env:DRIVER_OUTPUT_DIR -Directory | ForEach-Object {
Copy-Item -Path "$env:DRIVER_OUTPUT_DIR\$($_.Name).pdb" -Destination $_.FullName
}
- name: Get version tag
id: get_version_tag
run: |
$version = git describe --tags --always
Write-Output "version=$($version)" >> $env:GITHUB_OUTPUT
- name: Upload unsigned driver package artifact
uses: actions/upload-artifact@v3
with:
name: RkDrvPkg_${{matrix.PLATFORM}}_${{matrix.CONFIGURATION}}_${{steps.get_version_tag.outputs.version}}_unsigned
path: ${{env.DRIVER_OUTPUT_DIR}}/*/