blob: 2808e0a6f2fa311267100ef6d2ea103d23c0259c (
plain)
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
|
name: Build MacOS
on: [push]
jobs:
macos:
name: Build & Test
runs-on: macos-11.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dmgbuild
run: pip3 install dmgbuild
- name: Install pytest
run: pip install pytest pytest-xdist
- name: Install biplist
run: pip install biplist
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1.1.2
with:
ruby-version: '2.6'
- name: Install deps
run: ./tools/macos-setup-brew.sh
- name: Install asciidoctor
run: gem install asciidoctor
- name: Mkdir
run: mkdir build
- name: Cmake
working-directory: build
run: cmake -GNinja ..
- name: Build
run: ninja
working-directory: build
- name: Build test-programs
run: ninja test-programs
working-directory: build
- name: Run tests
env:
PYTEST_ADDOPTS: --skip-missing-programs=rawshark
run: pytest
working-directory: build
- name: Build dmg
run: ninja dmg_package
working-directory: build
- name: Move dmg package
run: |
mkdir dmg
mv build/run/*dmg dmg/
- name: Upload dmg packages
uses: actions/upload-artifact@v1
with:
name: packages
path: dmg
|