-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github workflow to build the app in diff OSes.
- Loading branch information
1 parent
24d4f25
commit 516d411
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Build App | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
platform: [windows-latest, macos-latest, ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7.6 | ||
|
||
- name: Install Pipenv | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipenv | ||
- name: Install FBS requirements | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ruby ruby-dev rubygems build-essential | ||
sudo gem install --no-document fpm | ||
fpm --version | ||
if: matrix.platform == 'ubuntu-latest' | ||
|
||
- name: Install Package dependencies | ||
run: | | ||
pipenv install | ||
pipenv graph | ||
- name: Build app | ||
run: | | ||
pipenv run fbs freeze | ||
- name: Make installer | ||
run: | | ||
pipenv run fbs installer | ||