forked from zpl-c/enet
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (68 loc) · 2.12 KB
/
notify-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
72
name: notify-release
on:
release:
types:
- published
workflow_dispatch:
jobs:
notify:
name: Show a changelog
runs-on: ubuntu-latest
steps:
- uses: sarisia/actions-status-discord@v1
if: always()
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
description: "**${{ github.repository }}: [${{ github.event.release.name }}](${{ github.event.release.html_url }})**\n\n**Changelog:**\n${{ github.event.release.body }}"
nodetail: true
nofail: true
color: "0x9999ff"
build-win:
name: Test Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Run cmake generator
run: cmake -B build -DENET_TEST=1 -DENET_SHARED=1
- name: Run Windows build
run: cmake --build build --config Release
- name: Run unit tests
run: cd build ; .\Release\enet_test.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/Release/enet_shared.dll
build-lin:
name: Test Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run cmake generator
run: cmake -B build -DENET_TEST=1 -DENET_SHARED=1 -DCMAKE_BUILD_TYPE=Release
- name: Run build on Linux
run: cmake --build build
- name: Test build on Linux
run: build/enet_test
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/libenet_shared.so
build-mac:
name: Test macOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Run cmake generator
run: cmake -B build -DENET_TEST=1 -DENET_SHARED=1 -DCMAKE_BUILD_TYPE=Release
- name: Run build on macOS
run: cmake --build build
- name: Test build on macOS
run: build/enet_test
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/libenet_shared.dylib