-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (73 loc) · 2.42 KB
/
edge.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
73
74
75
76
77
78
name: Edge Ubuntu/MacosX/Windows
permissions:
contents: write
on:
push:
tags:
- edge
jobs:
job_edge_ubuntu:
runs-on: ubuntu-latest
steps:
- id: CHECKOUT_SOURCE
uses: actions/checkout@v3
- id: INSTALL_ADDITIONAL_BUILD_DEPENDENCIES
run: sudo apt install -y eatmydata libtidy-dev libxml2-dev libxslt1-dev
- id: CONFIGURE
run: eatmydata ./configure
- id: MAKE
run: eatmydata make release
- id: TEST
run: eatmydata make test
- id: CREATE_RELEASE_ARCHIVE
run: tar czf build/xmq-gnu-linux-release.tar.gz -C build/default/release xmq
- id: DELETE_OLD_ASSET
run: gh release delete-asset edge xmq-gnu-linux-release.tar.gz
env:
GH_TOKEN: ${{ github.token }}
- id: UPLOAD_TO_EDGE
run: gh release upload edge build/xmq-gnu-linux-release.tar.gz
env:
GH_TOKEN: ${{ github.token }}
job_edge_macosx:
runs-on: macOS-latest
steps:
- id: CHECKOUT_SOURCE
uses: actions/checkout@v3
- id: CONFIGURE
run: ./configure
- id: MAKE
run: make release
- id: TEST
run: make test
- id: CREATE_RELEASE_ARCHIVE
run: tar czf build/xmq-macos-release.tar.gz -C build/default/release xmq
- id: DELETE_OLD_ASSET
run: gh release delete-asset edge xmq-macos-release.tar.gz
env:
GH_TOKEN: ${{ github.token }}
- id: UPLOAD_TO_EDGE
run: gh release upload edge build/xmq-macos-release.tar.gz
env:
GH_TOKEN: ${{ github.token }}
job_edge_windows:
runs-on: ubuntu-latest
steps:
- id: CHECKOUT_SOURCE
uses: actions/checkout@v3
- id: INSTALL_ADDITIONAL_BUILD_DEPENDENCIES
run: sudo apt install -y eatmydata gcc-mingw-w64 wixl
- id: FETCH_DEPS
run: cd 3rdparty; ./fetch_and_build.sh x86_64-w64-mingw32
- id: CONFIGURE
run: ./configure --host=x86_64-w64-mingw32 --with-libxml2=3rdparty/libxml2-winapi --with-libxslt=3rdparty/libxslt-winapi --with-zlib=3rdparty/zlib-1.3-winapi
- id: MAKE
run: make release
- id: DELETE_OLD_ASSET
run: gh release delete-asset edge xmq-windows-release.msi
env:
GH_TOKEN: ${{ github.token }}
- id: UPLOAD_TO_EDGE
run: gh release upload edge ./build/default/windows_installer/xmq-windows-release.msi
env:
GH_TOKEN: ${{ github.token }}