This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
79 lines (63 loc) · 1.99 KB
/
mingw.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
79
name: MinGW-w64 Test
on: [push, pull_request]
jobs:
MinGW-w64-build:
runs-on: ubuntu-latest
steps:
- name: "install packages"
run: |
sudo apt-get update && sudo apt-get install -y mingw-w64
- uses: actions/checkout@v3 # needed for pr checkout
- uses: sreimers/[email protected]
with:
name: re
repo: https://github.com/baresip/re
secret: ${{ secrets.GITHUB_TOKEN }}
- uses: sreimers/[email protected]
with:
name: retest
repo: https://github.com/baresip/retest
secret: ${{ secrets.GITHUB_TOKEN }}
- name: "clone baresip-win32 repo"
run: |
git clone https://github.com/baresip/baresip-win32.git
mv re baresip-win32/
mv retest baresip-win32/
- uses: actions/checkout@v3
with:
path: baresip-win32/rem
- uses: actions/cache@v2
id: openssl
with:
path: baresip-win32/openssl
key: ${{ runner.os }}-mingw-openssl-1.1.1m
- name: "build openssl"
if: steps.openssl.outputs.cache-hit != 'true'
run: |
wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz
tar -xzf openssl-1.1.1m.tar.gz
mv openssl-1.1.1m baresip-win32/openssl
make -j$(nproc) -C baresip-win32 openssl
- name: "build"
run: make -j$(nproc) -C baresip-win32 retest
- uses: actions/upload-artifact@v2
with:
name: retest-exe
path: baresip-win32/retest/retest.exe
retention-days: 1
wintest:
runs-on: windows-2019
needs: MinGW-w64-build
steps:
- uses: actions/download-artifact@v2
- uses: actions/checkout@v3
with:
path: baresip
- uses: sreimers/[email protected]
with:
name: retest
repo: https://github.com/baresip/retest
secret: ${{ secrets.GITHUB_TOKEN }}
- name: "run retest.exe"
run: mv retest-exe/retest.exe retest/ && cd retest && ./retest.exe
shell: bash