mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05:00
Re-enabled the mac_checks.yml after fixing the rate limit issue
This commit is contained in:
parent
136cd4da7c
commit
18aec3c713
4 changed files with 23 additions and 15 deletions
4
.github/workflows/linux_checks.yml
vendored
4
.github/workflows/linux_checks.yml
vendored
|
|
@ -57,7 +57,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Set up protoc
|
- name: Set up protoc
|
||||||
uses: Arduino/actions/setup-protoc@master
|
uses: arduino/setup-protoc@v1.1.0
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Set up node
|
- name: Set up node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Set up protoc
|
- name: Set up protoc
|
||||||
uses: Arduino/actions/setup-protoc@master
|
uses: arduino/setup-protoc@v1.1.0
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Set up node
|
- name: Set up node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -70,16 +72,16 @@ jobs:
|
||||||
brew link gettext --force
|
brew link gettext --force
|
||||||
- name: Run develop
|
- name: Run develop
|
||||||
run: |
|
run: |
|
||||||
# export SHELLFLAGS=-x
|
export SHELLFLAGS=-x
|
||||||
make develop BUILDFLAGS=""
|
make develop
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: |
|
run: |
|
||||||
# export SHELLFLAGS=-x
|
export SHELLFLAGS=-x
|
||||||
make build BUILDFLAGS=""
|
make build
|
||||||
- name: Run check
|
- name: Run check
|
||||||
run: |
|
run: |
|
||||||
# export SHELLFLAGS=-x
|
export SHELLFLAGS=-x
|
||||||
make check BUILDFLAGS=""
|
make check
|
||||||
- name: Upload python wheels
|
- name: Upload python wheels
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
9
.github/workflows/windows_checks.yml
vendored
9
.github/workflows/windows_checks.yml
vendored
|
|
@ -66,7 +66,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: C:\Program Files\Git
|
path: C:\Program Files\Git
|
||||||
key: ${{ runner.os }}-pacman-${{ hashFiles('**/windows_checks.yml') }}-3-
|
key: ${{ runner.os }}-pacman-${{ hashFiles('**/windows_checks.yml') }}-3-
|
||||||
- name: Set up pacman, pyaudio, rsync, rename
|
- name: Set up pacman, rsync
|
||||||
if: steps.cache-pacman.outputs.cache-hit != 'true'
|
if: steps.cache-pacman.outputs.cache-hit != 'true'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -85,7 +85,8 @@ jobs:
|
||||||
.\bash pacman-key --populate msys2
|
.\bash pacman-key --populate msys2
|
||||||
.\bash pacman-key --refresh-keys
|
.\bash pacman-key --refresh-keys
|
||||||
.\pacman -Tv
|
.\pacman -Tv
|
||||||
.\pacman -Syuv --overwrite='*'
|
.\pacman -Syyuuv --overwrite='*'
|
||||||
|
.\pacman -Syuuv --overwrite='*'
|
||||||
.\pacman --version
|
.\pacman --version
|
||||||
:: We must install bash first, otherwise we will have bash fork errors:
|
:: We must install bash first, otherwise we will have bash fork errors:
|
||||||
:: https://github.com/evandroforks/anki/runs/524857054?check_suite_focus=true
|
:: https://github.com/evandroforks/anki/runs/524857054?check_suite_focus=true
|
||||||
|
|
@ -109,7 +110,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Set up protoc
|
- name: Set up protoc
|
||||||
uses: Arduino/actions/setup-protoc@master
|
uses: arduino/setup-protoc@v1.1.0
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Set up node
|
- name: Set up node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
9
Makefile
9
Makefile
|
|
@ -60,13 +60,12 @@ all: run
|
||||||
# - modern pip required for wheel
|
# - modern pip required for wheel
|
||||||
# - add qt if missing
|
# - add qt if missing
|
||||||
pyenv:
|
pyenv:
|
||||||
"${PYTHON_BIN}" -m ensurepip && \
|
# https://github.com/PyO3/maturin/issues/283
|
||||||
|
# Expected `python` to be a python interpreter inside a virtualenv
|
||||||
"${PYTHON_BIN}" -m pip install virtualenv && \
|
"${PYTHON_BIN}" -m pip install virtualenv && \
|
||||||
"${PYTHON_BIN}" -m venv pyenv && \
|
"${PYTHON_BIN}" -m venv pyenv && \
|
||||||
case "$$(uname -s)" in CYGWIN*|MINGW*|MSYS*) \
|
case "$$(uname -s)" in CYGWIN*|MINGW*|MSYS*) \
|
||||||
dos2unix "${ACTIVATE_SCRIPT}" && \
|
dos2unix "${ACTIVATE_SCRIPT}" && \
|
||||||
# https://github.com/PyO3/maturin/issues/283 \
|
|
||||||
# Expected `python` to be a python interpreter inside a virtualenv \
|
|
||||||
VIRTUAL_ENV="$$(pwd)" && \
|
VIRTUAL_ENV="$$(pwd)" && \
|
||||||
VIRTUAL_ENV="$$(cygpath -m "$${VIRTUAL_ENV}")" && \
|
VIRTUAL_ENV="$$(cygpath -m "$${VIRTUAL_ENV}")" && \
|
||||||
sed -i -- "s@VIRTUAL_ENV=\".*\"@VIRTUAL_ENV=\"$$(pwd)/pyenv\"@g" "${ACTIVATE_SCRIPT}" && \
|
sed -i -- "s@VIRTUAL_ENV=\".*\"@VIRTUAL_ENV=\"$$(pwd)/pyenv\"@g" "${ACTIVATE_SCRIPT}" && \
|
||||||
|
|
@ -76,7 +75,9 @@ pyenv:
|
||||||
python --version && \
|
python --version && \
|
||||||
python -m pip install --upgrade pip setuptools && \
|
python -m pip install --upgrade pip setuptools && \
|
||||||
${ANKI_EXTRA_PIP} && \
|
${ANKI_EXTRA_PIP} && \
|
||||||
python -c 'import PyQt5' 2>/dev/null || python -m pip install -r qt/requirements.qt
|
if ! python -c 'import PyQt5' 2>/dev/null; then \
|
||||||
|
python -m pip install -r qt/requirements.qt; \
|
||||||
|
fi;
|
||||||
|
|
||||||
# update build hash
|
# update build hash
|
||||||
.PHONY: buildhash
|
.PHONY: buildhash
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue