-
Notifications
You must be signed in to change notification settings - Fork 10
74 lines (62 loc) · 2.17 KB
/
test_build_windows.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Testing Windows Build
name: test_build_windows
on:
workflow_dispatch:
branches: [main]
inputs:
fail_fast:
description: "Should stop the workflow as soon as one configuration fails"
required: false
type: boolean
default: true
jobs:
build-windows:
strategy:
fail-fast: ${{ github.event.inputs.fail_fast != 'false'}}
matrix:
os: [windows-2019, windows-2022]
architecture: [win64]
build-type: [Release, Debug]
runs-on: ${{ matrix.os }}
steps:
- name: Cleanup docker
run: docker rmi $(docker images -q -a)
shell: powershell
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "add-path"
shell: cmd
run: |
echo "::add-path::C:\msys64\usr\bin"
echo "::add-path::D:/a/webrtc-native-build/webrtc-native-build/3rdParty/depot_tools"
- name: Read VERSION
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./VERSION
- name: Generate Version Output
id: generate_version_output
run: echo ::set-output name=version::${{ steps.package.outputs.content }}
shell: cmd
- name: Print Version Information
run: echo "Version ${{ steps.generate_version_output.outputs.version }}"
shell: cmd
- name: Generate Release File Name
id: generate_release_file_name
run: |
echo "::set-output name=release_file_name::webrtc-native-build-${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.build-type }}-${{ steps.generate_version_output.outputs.version }}"
shell: cmd
- name: Print Release File Name
run: echo "Release File Name ${{ steps.generate_release_file_name.outputs.release_file_name }}"
shell: cmd
- name: Create build directory
working-directory: .
run: |
mkdir build
- name: Run CMake and build webrtc-native-build
working-directory: build
run: |
cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DCMAKE_BUILD_ARCHITECTURE=${{ matrix.architecture }}
make -j2
make install