-
Notifications
You must be signed in to change notification settings - Fork 15
97 lines (72 loc) · 2.48 KB
/
install-test.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
92
93
94
95
96
97
name: Install test
on: [push]
jobs:
Build-install-windows:
runs-on: windows-2022
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
- name: Building package
run: ./builder.ps1
working-directory: ./pkg/msi
- name: Installing package
run: ./fim*.msi /q /l*v msi.log
working-directory: ./pkg/msi
- name: Print install log
run: cat msi.log
working-directory: ./pkg/msi
- name: Start FIM service
run: NET START FimService
- name: Check FIM is running
run: NET START | findstr "File Integrity"
Build-install-ubuntu:
runs-on: [self-hosted, ubuntu18]
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
- name: Building package
run: sudo ./builder.sh
working-directory: ./pkg/deb
- name: Installing package
run: sudo dpkg --install ./fim*.deb
working-directory: ./pkg/deb
- name: Start FIM service
run: sudo systemctl start fim
- name: Check FIM running
run: sudo systemctl status fim
- name: Remove package installation
if: always()
run: sudo dpkg --purge fim
Build-install-centos:
runs-on: [self-hosted, centos7]
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
- name: Building package
run: sudo ./builder.sh
working-directory: ./pkg/rpm
- name: Installing package
run: sudo yum install -y ./fim*.rpm
working-directory: ./pkg/rpm
- name: Start FIM service
run: sudo systemctl start fim
- name: Check FIM running
run: sudo systemctl status fim
- name: Remove package installation
if: always()
run: sudo yum remove -y fim
Build-install-macos:
runs-on: macos-12
steps:
- name: Check out repository code, branch='${{ github.ref }}'
uses: actions/checkout@v2
- name: Building package
run: sudo ./builder.sh
working-directory: ./pkg/macos
- name: Installing package
run: sudo installer -pkg fim*.pkg -target /
working-directory: ./pkg/macos
- name: Start FIM service
run: sudo launchctl load -w /Library/LaunchDaemons/com.Achiefs.fim.launchd.plist
- name: Check FIM running
run: sudo launchctl print system/com.Achiefs.fim | grep "state = running"