-
Notifications
You must be signed in to change notification settings - Fork 107
72 lines (50 loc) · 1.64 KB
/
main.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
name: CI
on: [push]
jobs:
cache-submodule:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule
build-lnx-bld:
needs: [cache-submodule]
runs-on: ubuntu-latest
steps:
- run: sudo rm -rf /opt
- uses: actions/checkout@v4
- run: docker build --build-arg GIT_REPOSITORY=https://github.com/${{ github.repository }}.git --build-arg GIT_COMMIT=${{ github.sha }} --build-arg GIT_SETUP=env/setup-git.sh -t orchidd:latest srv-docker
- run: docker save -o orchidd.tar orchidd:latest
- uses: actions/upload-artifact@v4
with:
name: orchidd-dkr
path: orchidd.tar
build-lnx-mac:
needs: [cache-submodule]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule
- uses: ./.github/actions/nerdctl
- run: env/setup-ndk.sh
- run: gmake -j3 -C srv-daemon target=lnx machine=x86_64
- uses: actions/upload-artifact@v4
with:
name: orchidd-lnx-amd64
path: srv-daemon/out-lnx/x86_64/orchidd
build-lnx-all:
needs: [build-lnx-mac, build-lnx-bld]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: orchidd-dkr
- run: tar -xvf orchidd.tar
- run: tar -xvf "$(jq -r '.[0].Layers | .[]' manifest.json | tail -n1)"
- uses: actions/download-artifact@v4
with:
name: orchidd-lnx-amd64
- run: chmod +x orchidd
- run: diff -u <(./usr/sbin/orchidd --version) <(./orchidd --version)
- run: diff -u <(xxd usr/sbin/orchidd) <(xxd orchidd)