diff options
author | Dario Lombardo <lomato@gmail.com> | 2020-03-02 14:35:53 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2020-03-08 19:03:59 +0000 |
commit | 9cdff50e1898ca16f1752c5cce58c98cedd54c23 (patch) | |
tree | 16c90b6775913d1aadd7310969cf42c31b034110 /.github | |
parent | c2b1cf6f33f2907be865d2ae8148fd47c29e3fc9 (diff) |
github: create OSX package and upload it as artifact.
Change-Id: I05e0b97a67de0bda4da3623e8574aa2af33ee43b
Reviewed-on: https://code.wireshark.org/review/36319
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/macos.yml | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index aed72f724d..8c131f63be 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -9,8 +9,16 @@ jobs: 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 deps - run: ./tools/macos-setup-brew.sh + run: ./tools/macos-setup-brew.sh ruby + - name: Install dmgbuild + run: pip3 install dmgbuild + - name: Install asciidoctor + run: gem install asciidoctor - name: Mkdir run: mkdir build - name: Cmake @@ -22,10 +30,6 @@ jobs: - name: Build test-programs run: ninja test-programs working-directory: build - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - name: Install pytest run: pip install pytest pytest-xdist - name: Run tests @@ -33,3 +37,15 @@ jobs: 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 |