-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.1 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
name: Build sources
on: [push, workflow_call, workflow_dispatch]
jobs:
build_linux:
name: Linux build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
working-directory: ./sources/rand
run: make
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-artifact
path: ./sources/rand/rand.so
if-no-files-found: error
retention-days: 7
build_windows:
name: Windows build
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Build
run: 'MSBuild.exe sources/cpuid-rdrand/cpuid-rdrand.vcxproj /p:Platform=x64 /p:Configuration=Release'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-artifact
path: |
.\sources\cpuid-rdrand\x64\Release\cpuid-rdrand.exe
.\sources\cpuid-rdrand\x64\Release\cpuid-rdrand.pdb
if-no-files-found: error
retention-days: 7