-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (42 loc) · 1.3 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
53
name: easylink
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build_easylink:
name: build_easylink
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: seanmiddleditch/gha-setup-ninja@master
- name: make build directory
run: mkdir build
- name: Install ninja (for use with cmake)
run: |
choco install ninja -y
ninja --version
- name: Show versions of cmake and clang
run: |
cmake --version
clang --version
clang++ --version
- name: Configure
run: cmake -B ${{github.workspace}}/build -S . -G "Ninja Multi-Config" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
- name: Compile
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all
- name: Show dir tree
run: ls -R
- uses: actions/[email protected]
with:
name: easylink-windows-x64
path: |
./build/sdk/${{env.BUILD_TYPE}}/*.dll
./build/sdk/${{env.BUILD_TYPE}}/*.lib
./sdk/easy_link_c.h