summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml8
-rw-r--r--.github/workflows/translations.yml9
2 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 378c4c18..ec4864ec 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -110,8 +110,12 @@ jobs:
git config --system core.longpaths true
python -m pip install --upgrade pip
python -m pip install wheel
- # scipy 1.9.1 is the last version to support 32-bit windows
- python -m pip install scipy==1.9.1
+ # inkex has pillow as a requirement and defaults to the latest release.
+ # for windows we need to pin to the latest possible version for 32 bit
+ python -m pip install pillow==9.5.0
+ # Numpy and Scipy version for older cpu compatibility
+ python -m pip install numpy==1.23.1
+ python -m pip install scipy==1.9.0
python -m pip install -r requirements.txt
python -m pip install pyinstaller
diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml
index 4882eb4f..e359512c 100644
--- a/.github/workflows/translations.yml
+++ b/.github/workflows/translations.yml
@@ -18,12 +18,13 @@ jobs:
with:
python-version: '3.8.x'
- env:
- CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
+ CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_V2_KEY }}
+ CROWDIN_PROJECT_ID: "299419"
run: |
git config --global user.email "inkstitch-crowdin@lex.gd"
git config --global user.name "Ink/Stitch Crowdin integration"
- wget --quiet https://downloads.crowdin.com/cli/v2/crowdin-cli.zip
+ wget --quiet https://downloads.crowdin.com/cli/v3/crowdin-cli.zip
unzip -j crowdin-cli.zip
sudo apt-get update
@@ -47,10 +48,10 @@ jobs:
make messages.po
echo "uploading messages.po to crowdin"
- java -jar crowdin-cli.jar -v upload -b main
+ java -jar crowdin-cli.jar -v upload -b main -T "$CROWDIN_API_KEY" -i "$CROWDIN_PROJECT_ID"
echo "downloading new translations"
- java -jar crowdin-cli.jar -v pull -b main
+ java -jar crowdin-cli.jar -v pull -b main -T "$CROWDIN_API_KEY" -i "$CROWDIN_PROJECT_ID"
# Try to only commit if translations changed. Crowdin will update all
# files when a new translation string is added but we don't need to