forked from NeKzor/SourceAutoRecord
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.1 KB
/
CI.yml
File metadata and controls
41 lines (39 loc) · 1.1 KB
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
name: CI
on: [push, pull_request]
jobs:
build-lin:
name: Linux Build
runs-on: ubuntu-16.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Dependencies
run: sudo apt-get install -y g++-8-multilib
- name: Build
run: |
make
mkdir -p artifact/
cp sar.so artifact/sar.so
- name: Create Artifact
uses: actions/upload-artifact@v1
with:
name: sar-linux
path: artifact/
build-win:
name: Windows Build
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe $Env:GITHUB_WORKSPACE\SourceAutoRecordv16.sln /t:SourceAutoRecord /p:Configuration=Release /p:Platform=x86
cd $Env:GITHUB_WORKSPACE
mkdir -p artifact/
cp bin/sar.dll artifact/sar.dll
- name: Create Artifact
uses: actions/upload-artifact@v1
with:
name: sar-windows
path: artifact/