-
Notifications
You must be signed in to change notification settings - Fork 70
91 lines (78 loc) · 2.38 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
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
name: Build Bisq 2
on:
push:
pull_request:
types: [ opened, reopened, synchronize, closed ]
branches: [ main ]
permissions:
contents: read
jobs:
build_bisq:
name: Build Bisq on ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, macos-12, windows-latest ]
uses: ./.github/workflows/build_bisq_module.yml
with:
os: ${{ matrix.os }}
name: Bisq
build-root-dir: .
build_apps_module:
name: Build apps module on ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, macos-12, windows-latest ]
uses: ./.github/workflows/build_bisq_module.yml
with:
os: ${{ matrix.os }}
name: apps module
build-root-dir: apps
build_network_module:
name: Build network module on ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, macos-12, windows-latest ]
uses: ./.github/workflows/build_bisq_module.yml
with:
os: ${{ matrix.os }}
name: network module
build-root-dir: network
build_tor_module:
name: Build tor module on ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, macos-12, windows-latest ]
uses: ./.github/workflows/build_bisq_module.yml
with:
os: ${{ matrix.os }}
name: tor module
build-root-dir: network/tor
build_wallet_module:
name: Build wallet module on ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, macos-12, windows-latest ]
uses: ./.github/workflows/build_bisq_module.yml
with:
os: ${{ matrix.os }}
name: wallet module
build-root-dir: wallets
if_merged:
if: github.event.pull_request.merged == true
name: Push translation source files to Transifex
runs-on: ubuntu-latest
steps:
- name: "Check if TX_TOKEN secret exists"
env:
transifex_secret: ${{secrets.TX_TOKEN}}
if: ${{env.transifex_secret == ''}}
run: |
echo "The secret \"TX_TOKEN\" has not been set; please go to \"settings \> secrets and variables\" to create it"
exit 1
- name: Checkout
uses: actions/[email protected]
- name: Push source files using transifex client
uses: transifex/cli-action@v2
with:
token: ${{ secrets.TX_TOKEN }}
args: push -s