-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (58 loc) · 1.44 KB
/
release.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
name: Test and Release
on:
push:
tags:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache Choco packages
uses: actions/cache@v3
with:
path: ~\AppData\Local\Temp\chocolatey
key: ${{ runner.os }}-choco-${{ hashFiles('**/*.yml') }}
restore-keys: |
${{ runner.os }}-choco-
- name: Install dependencies
run: |
choco install llvm
choco install make
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- name: Configure
run: |
$env:CC="clang"
$env:CXX="clang++"
mkdir build
cd build
cmake -G "Unix Makefiles" ..
- name: Build
run: |
cd build
make
- name: Test
run: |
cd build
./tests.exe
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: ./build/
release:
needs: build
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: ./build/
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./build/SynthPointer.dll