-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (84 loc) · 2.21 KB
/
develop.yml
File metadata and controls
100 lines (84 loc) · 2.21 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: CI
on:
push:
branches:
- develop
jobs:
linux-x64:
runs-on: ubuntu-latest
env:
TARGET_OS: linux
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Build
run: make build-linux
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: linux-x64
path: ./build/${{ env.TARGET_OS }}/*.so
win-x64:
runs-on: ubuntu-latest
env:
TARGET_OS: win
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Install cmake & MinGW
run: sudo apt-get update && sudo apt-get -y install cmake && sudo apt-get -y install gcc-mingw-w64-x86-64
- name: Build
run: make build-win
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: win-x64
path: ./build/${{ env.TARGET_OS }}/*.dll
macos:
runs-on: macos-latest
env:
TARGET_OS: macos
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Build
run: make build-macos
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: mac-x64
path: ./build/${{ env.TARGET_OS }}/*.dylib
build_dev_nuget:
runs-on: ubuntu-latest
needs: [linux-x64, win-x64, macos]
env:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '5.0.100'
- uses: actions/download-artifact@v4
with:
name: linux-x64
path: ./linux-x64
- uses: actions/download-artifact@v4
with:
name: mac-x64
path: ./mac-x64
- uses: actions/download-artifact@v4
with:
name: win-x64
path: ./win-x64
- name: Build nuget
run: make build-nugets
- name: Upload Nuget package
uses: actions/upload-artifact@v4
with:
name: UdpToolkitNative
if-no-files-found: error
path: ./**/*.nupkg