@@ -3,135 +3,36 @@ name: Packages
33on :
44 workflow_dispatch :
55
6- concurrency :
7- group : ${{ github.workflow }}-${{ github.ref }}
8- cancel-in-progress : true
9-
106jobs :
11- build-packages-debian :
12- strategy :
13- fail-fast : false
14- matrix :
15- pkgarch : ["amd64", "i386", "mips", "mipsel", "armhf", "armel", "arm64"]
167
17- name : Package (Debian, ${{ matrix.pkgarch }})
8+ build-libs-android :
189
10+ name : Build libs (Android)
1911 runs-on : ubuntu-latest
20- steps :
21- - uses : actions/checkout@v3
22- with :
23- fetch-depth : 0
24-
25- - name : Set up Go
26- uses : actions/setup-go@v3
27- with :
28- go-version : 1.19
29-
30- - name : Build package
31- env :
32- PKGARCH : ${{ matrix.pkgarch }}
33- run : sh contrib/deb/generate.sh
34-
35- - name : Upload artifacts
36- uses : actions/upload-artifact@v3
37- with :
38- name : Debian package (${{ matrix.pkgarch }})
39- path : " *.deb"
40- if-no-files-found : error
41-
42- build-packages-macos :
43- strategy :
44- fail-fast : false
45- matrix :
46- pkgarch : ["amd64", "arm64"]
47-
48- name : Package (macOS, ${{ matrix.pkgarch }})
49-
50- runs-on : macos-latest
51- steps :
52- - uses : actions/checkout@v3
53- with :
54- fetch-depth : 0
55-
56- - name : Set up Go
57- uses : actions/setup-go@v3
58- with :
59- go-version : 1.19
60-
61- - name : Build package
62- env :
63- PKGARCH : ${{ matrix.pkgarch }}
64- run : sh contrib/macos/create-pkg.sh
65-
66- - name : Upload artifacts
67- uses : actions/upload-artifact@v3
68- with :
69- name : macOS package (${{ matrix.pkgarch }})
70- path : " *.pkg"
71- if-no-files-found : error
72-
73- build-packages-windows :
74- strategy :
75- fail-fast : false
76- matrix :
77- pkgarch : ["x64", "x86", "arm", "arm64"]
7812
79- name : Package (Windows, ${{ matrix.pkgarch }})
80-
81- runs-on : windows-latest
8213 steps :
83- - uses : actions/checkout@v3
84- with :
85- fetch-depth : 0
86-
87- - name : Set up Go
88- uses : actions/setup-go@v3
89- with :
90- go-version : 1.19
91-
92- - name : Build package
93- run : sh contrib/msi/build-msi.sh ${{ matrix.pkgarch }}
94-
95- - name : Upload artifacts
96- uses : actions/upload-artifact@v3
97- with :
98- name : Windows package (${{ matrix.pkgarch }})
99- path : " *.msi"
100- if-no-files-found : error
101-
102- build-packages-router :
103- strategy :
104- fail-fast : false
105- matrix :
106- pkgarch : ["edgerouter-x", "edgerouter-lite", "vyos-amd64", "vyos-i386"]
107-
108- name : Package (Router, ${{ matrix.pkgarch }})
109-
110- runs-on : ubuntu-latest
111- steps :
112- - uses : actions/checkout@v3
113- with :
114- fetch-depth : 0
115- path : yggdrasil
116-
117- - uses : actions/checkout@v3
118- with :
119- repository : neilalexander/vyatta-yggdrasil
120- path : vyatta-yggdrasil
121-
122- - name : Set up Go
123- uses : actions/setup-go@v3
124- with :
125- go-version : 1.19
126-
127- - name : Build package
128- env :
129- BUILDDIR_YGG : /home/runner/work/yggdrasil-go/yggdrasil-go/yggdrasil
130- run : cd /home/runner/work/yggdrasil-go/yggdrasil-go/vyatta-yggdrasil && ./build-${{ matrix.pkgarch }}
131-
132- - name : Upload artifacts
133- uses : actions/upload-artifact@v3
134- with :
135- name : Router package (${{ matrix.pkgarch }})
136- path : " /home/runner/work/yggdrasil-go/yggdrasil-go/vyatta-yggdrasil/*.deb"
137- if-no-files-found : error
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : 🐼 Setup go1.22+
18+ uses : actions/setup-go@v5
19+ with :
20+ go-version : ' >=1.22'
21+
22+ - name : Run build command
23+ run : |
24+ go install golang.org/x/mobile/cmd/gomobile@latest
25+ gomobile init
26+ ./contrib/mobile/build -a
27+
28+ - name : Upload .aar files
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : aar-files
32+ path : ' **/*.aar'
33+
34+ - name : Upload .jar files
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : jar-files
38+ path : ' **/*.jar'
0 commit comments