This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (61 loc) · 1.88 KB
/
pr.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
name: Build and Test
on:
pull_request:
branches:
- main
jobs:
build_and_test_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install third-party apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake portaudio19-dev nasm
- name: Install vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
working-directory: /tmp/
- name: Build and Test on Linux
run: |
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake -RunTests
working-directory: ./devops/scripts/bash/
build_windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install third-party choco dependencies
run: |
choco install cmake
- name: Install vcpkg
run: |
cd $env:TEMP
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
- name: Build on Windows
shell: pwsh
run: |
.\compile_source_code.ps1 -CMakeToolchainFile $env:TEMP\vcpkg\scripts\buildsystems\vcpkg.cmake
working-directory: .\devops\scripts\ps1\
build_macos:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install third-party brew dependencies
run: |
brew install pkg-config cmake portaudio nasm
- name: Install vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
working-directory: /tmp/
- name: Build on macOS
run: |
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake
working-directory: ./devops/scripts/bash/