Skip to content

Commit

Permalink
Add support for macos packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurd1 committed Feb 4, 2021
1 parent f91f0ab commit 163fb77
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
package-linux:
runs-on: ubuntu-latest
runs-on: ubuntu-16.04
env:
VERSION: ${{ github.event.inputs.version }}
steps:
Expand All @@ -27,5 +27,27 @@ jobs:
run: make build-binary
- uses: actions/upload-artifact@v2
with:
name: opta
name: opta_linux
path: dist/opta

package-macos:
runs-on: macos-10.15
env:
VERSION: ${{ github.event.inputs.version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install python dependencies
run: |
pip install pipenv
pipenv install --deploy --dev
source $(pipenv --venv)/bin/activate
- name: Package
run: make build-binary
- uses: actions/upload-artifact@v2
with:
name: opta_macos
path: dist/opta

0 comments on commit 163fb77

Please sign in to comment.