Fix macos not find gettex, msgfmt: command not found

https://github.com/ankitects/anki/runs/617116053?check_suite_focus=true#step:27:1244
Compiling *.po...
./scripts/build-mo-files: line 18: msgfmt: command not found
./scripts/build-mo-files: line 18: msgmerge: command not found
This commit is contained in:
evandrocoan 2020-04-25 04:30:01 -03:00
parent 8dfd362fed
commit aca5d177bf

View file

@ -64,6 +64,9 @@ jobs:
# https://stackoverflow.com/questions/43175529/updating-make-version-4-1-on-mac # https://stackoverflow.com/questions/43175529/updating-make-version-4-1-on-mac
echo "::set-env name=PATH::/usr/local/opt/make/libexec/gnubin:$PATH" echo "::set-env name=PATH::/usr/local/opt/make/libexec/gnubin:$PATH"
# https://stackoverflow.com/questions/59644349/msgmerge-on-macos-catalina
echo "::set-env name=PATH::/usr/local/opt/gettext/bin:$PATH"
- name: Configure Windows environment variables - name: Configure Windows environment variables
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: |
@ -213,7 +216,6 @@ jobs:
run: | run: |
set -x set -x
brew install portaudio protobuf gettext ripgrep make brew install portaudio protobuf gettext ripgrep make
brew link gettext --force
- name: Set up python - name: Set up python
uses: actions/setup-python@v1 uses: actions/setup-python@v1