[fix] fixed update linux making executable. #15
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
name: Build Marmara Connector | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_Debian: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: "3.6" | |
- name: Install dependencies, run fbs and freeze the app | |
shell: bash | |
run: | | |
sudo apt update | |
sudo apt install -y --no-install-recommends libcurl4-openssl-dev libssl-dev python3-dev python3 python3-pip python3-venv qttools5-dev-tools python3-pyqt5 | |
python3 -m venv venv | |
source venv/bin/activate | |
sudo apt-get install ruby ruby-dev rubygems build-essential | |
sudo gem install --no-document fpm | |
fpm --version | |
pip install pip -U | |
pip install wheel | |
pip install -r requirements.txt | |
fbs freeze | |
fbs installer | |
- name: Upload a Build Artifact (Linux AppImage) | |
uses: actions/upload-artifact@v3.0.0 | |
with: | |
path: target/*.deb | |
retention-days: 7 | |
- name: Upload a Build Artifact (Linux Portable) | |
uses: actions/upload-artifact@v3.0.0 | |
with: | |
path: target/MarmaraConnector-* | |
retention-days: 7 | |
build_Windows: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: "3.6.x" | |
- name: Install dependencies | |
shell: powershell | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pywin32 | |
pip install wheel | |
pip install -r requirements.txt | |
- name: Run fbs and freeze app | |
shell: powershell | |
run: | | |
fbs freeze | |
fbs installer | |
- name: Upload a Build Artifact (Windows exectutable) | |
uses: actions/upload-artifact@v3.0.0 | |
with: | |
path: .\target\*.exe | |
retention-days: 7 | |
- name: Upload a Build Artifact (Windows Portable) | |
uses: actions/upload-artifact@v3.0.0 | |
with: | |
path: .\target\MarmaraConnector* | |
retention-days: 7 |