summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml55
-rw-r--r--.github/workflows/translations.yml18
2 files changed, 60 insertions, 13 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2445dc0d..3610ec6b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,25 +8,27 @@ on:
- "v*"
jobs:
linux:
- runs-on: ubuntu-16.04
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
- python-version: '3.9.x'
+ python-version: '3.8.5'
- uses: actions/setup-node@v1
with:
node-version: '16.x'
-
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 3.1
- uses: actions/cache@v2
id: pip-cache
with:
path: ~/.cache/pip
- key: ${{ runner.os }}-16.04-pip-${{ hashFiles('**/requirements.txt') }}
+ key: ${{ runner.os }}-18.04-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
- ${{ runner.os }}-16.04-pip-
+ ${{ runner.os }}-18.04-pip-
- name: Get yarn cache directory path
id: yarn-cache-dir-path
@@ -63,8 +65,8 @@ jobs:
python -m pip --version
python -m pip debug
- python -m pip install pycairo==1.11.1
- python -m pip install PyGObject==3.30.5
+ python -m pip install pycairo
+ python -m pip install PyGObject
# colormath - last official release: 3.0.0
# we need already submitted fixes - so let's grab them from the github repository
@@ -79,6 +81,7 @@ jobs:
make dist
env:
BUILD: linux
+ INKSTITCH_GPG_KEY: ${{ secrets.INKSTITCH_GPG_KEY }}
- uses: actions/upload-artifact@v2
with:
name: inkstitch-linux
@@ -114,6 +117,20 @@ jobs:
make dist
env:
BUILD: windows
+ - uses: dlemstra/code-sign-action@v1
+ with:
+ certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}'
+ folder: 'dist'
+ recursive: true
+ - shell: bash
+ run: |
+ bash bin/build-windows-installer
+ env:
+ BUILD: windows
+ - uses: dlemstra/code-sign-action@v1
+ with:
+ certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}'
+ folder: 'artifacts'
- uses: actions/upload-artifact@v2
with:
name: inkstitch-windows
@@ -126,7 +143,7 @@ jobs:
submodules: recursive
- uses: actions/setup-python@v2
with:
- python-version: '3.9.x'
+ python-version: '3.8.x'
- uses: actions/setup-node@v1
with:
node-version: '16.x'
@@ -150,9 +167,12 @@ jobs:
pip install wheel
pip install PyGObject
pip install git+https://github.com/gtaylor/python-colormath
-
pip install -r requirements.txt
- pip install pyinstaller==4.3
+ # with --no-binary argument may fix notary issues as well shapely speedups error issue
+ pip install -U lxml --no-binary lxml
+ pip uninstall --yes shapely
+ pip install -v -U Shapely==1.8.1 --no-binary Shapely
+ pip install pyinstaller
echo "${{ env.pythonLocation }}/bin" >> $GITHUB_PATH
- shell: bash
@@ -160,6 +180,15 @@ jobs:
make dist
env:
BUILD: osx
+ MACOS_CERTIFICATE: ${{ secrets.INKSTITCH_APPLE_DEVELOPER_CERTIFICATE }}
+ MACOS_CERTIFICATE_PWD: ${{ secrets.INKSTITCH_APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
+ KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PASSWORD }}
+ INSTALLER_CERTIFICATE: ${{ secrets.INKSTITCH_APPLE_INSTALLER_CERTIFICATE }}
+ INSTALLER_PWD: ${{ secrets.INKSTITCH_APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
+ NOTARY_ACCOUNT: ${{ secrets.INKSTITCH_NOTARIZE_AC }}
+ NOTARY_PASSWORD: ${{ secrets.INKSTITCH_NOTARIZE_PASS }}
+
+
- uses: actions/upload-artifact@v2
with:
name: inkstitch-mac
@@ -211,4 +240,10 @@ jobs:
prerelease: "${{env.prerelease}}"
title: "${{env.title}}"
files: |
+ artifacts/*.exe
+ artifacts/*.pkg
+ artifacts/*.deb
+ artifacts/*.rpm
+ artifacts/*.tar.xz
+ artifacts/*.sh
artifacts/*.zip
diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml
index 2b18f3df..9c579cbb 100644
--- a/.github/workflows/translations.yml
+++ b/.github/workflows/translations.yml
@@ -16,7 +16,7 @@ jobs:
git submodule update --init --recursive
- uses: actions/setup-python@v1
with:
- python-version: '3.x'
+ python-version: '3.9.x'
- env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
@@ -26,9 +26,21 @@ jobs:
wget --quiet https://downloads.crowdin.com/cli/v2/crowdin-cli.zip
unzip -j crowdin-cli.zip
- sudo apt-get install python2.7 gettext
+ sudo apt-get update
+ sudo apt install gettext
+ # for wxPython
+ sudo apt install glib-networking libsdl1.2-dev
+ # for PyGObject
+ sudo apt install libgirepository1.0-dev libcairo2-dev
+ # for shapely
+ sudo apt install libgeos-dev build-essential libgtk-3-dev
+
python -m pip install --upgrade pip
- python -m pip install flask==0.* jinja2 Babel ./pyembroidery
+ python -m pip install wheel
+ python -m pip install pycairo==1.11.1
+ python -m pip install PyGObject==3.30.5
+ python -m pip install -r requirements.txt
+ python -m pip install Babel
make messages.po
echo "uploading messages.po to crowdin"