disable Windows CI for now
This commit is contained in:
parent
61bf2f80eb
commit
96f6b94dba
157
.github/workflows/checks.yml
vendored
157
.github/workflows/checks.yml
vendored
@ -45,8 +45,7 @@ jobs:
|
||||
],
|
||||
"os": [
|
||||
"ubuntu-latest",
|
||||
"macos-latest",
|
||||
"windows-latest"
|
||||
"macos-latest"
|
||||
],
|
||||
"python": [
|
||||
3.8
|
||||
@ -67,15 +66,6 @@ jobs:
|
||||
"BAZEL_REPO": "~/Library/Caches/bazelrepo",
|
||||
"BAZEL_DISK": "~/Library/Caches/bazeldisk",
|
||||
"ANKI_PYTHON_WHEELS": "anki_macos_python"
|
||||
},
|
||||
{
|
||||
"os": "windows-latest",
|
||||
"name": "Windows",
|
||||
"SEP": "\\",
|
||||
"BAZEL_ROOT": "~\\AppData\\Local\\bazelroot",
|
||||
"CARGO_INDEX_DIR": "C:\\Rust\\.cargo\\git",
|
||||
"CARGO_REGISTRY_DIR": "C:\\Rust\\.cargo\\registry",
|
||||
"ANKI_PYTHON_WHEELS": "anki_windows_python"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -186,144 +176,27 @@ jobs:
|
||||
# Windows
|
||||
################################
|
||||
|
||||
- name: Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
# # https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
|
||||
# if( "3.8".equals( "${{ matrix.python }}" ) ) {
|
||||
# $pyaudio=("PyAudio-0.2.11-cp37-cp37m-win_amd64.whl")
|
||||
# }
|
||||
# else {
|
||||
# $pyaudio=("PyAudio-0.2.11-cp38-cp38-win_amd64.whl")
|
||||
# }
|
||||
|
||||
# $new_path=("$env:GITHUB_WORKSPACE;$env:PATH")
|
||||
# $new_path=("$env:GITHUB_WORKSPACE\shims;$new_path")
|
||||
|
||||
# echo "::set-env name=rsyncbin::rsync-3.1.3-1-x86_64.pkg.tar.xz"
|
||||
# echo "::set-env name=pyaudio::$pyaudio"
|
||||
# echo "::set-env name=WINDOWS_CI_TOOLS::https://github.com/ankitects/windows-ci-tools/raw/master"
|
||||
# echo "::set-env name=PATH::$new_path"
|
||||
# echo "::set-env name=RUST_BACKTRACE::full"
|
||||
# echo "::set-env name=SCOOP::$env:GITHUB_WORKSPACE"
|
||||
# echo "::set-env name=SCOOP_GLOBAL::$env:GITHUB_WORKSPACE"
|
||||
# echo "::set-env name=ANKI_EXTRA_PIP::python -m pip install $pyaudio"
|
||||
|
||||
Set-PSDebug -Trace 1
|
||||
|
||||
$env:PATH = "$env:PATH;c:\msys64\usr\bin"
|
||||
|
||||
$env:ANKI_IMPORT_ONLY = "1"
|
||||
$PYTHON = Get-Command python | Select-Object -ExpandProperty Definition
|
||||
$BAZEL = ".\bazel.exe --output_user_root=..\bazout"
|
||||
$ARGS = "--action_env=\`"PYTHON_SYS_EXECUTABLE=$PYTHON\`""
|
||||
|
||||
curl --fail -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-windows-amd64.exe -o .\bazel.exe
|
||||
|
||||
# try build a few times to compensate for rollup flakiness
|
||||
|
||||
echo "Currently broken"
|
||||
# for ($i=1; $i -le 4; $i++) { Invoke-Expression "$BAZEL build qt:runanki -k $ARGS" -ErrorAction "continue" }
|
||||
# Invoke-Expression "$BAZEL build qt:runanki -k $ARGS"
|
||||
# Invoke-Expression "$BAZEL test ... $ARGS"
|
||||
# Invoke-Expression "$BAZEL run qt:runanki $ARGS"
|
||||
|
||||
# - name: Cache pyenv
|
||||
# if: matrix.os != 'ubuntu-latest' && matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ github.workspace }}${{ matrix.SEP }}pyenv
|
||||
# key: ${{ runner.os }}-pyenv-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-25-
|
||||
|
||||
# # Disable it in attempt to reduce the overall cache size (https://github.com/ankitects/anki/pull/528)
|
||||
# - name: Cache pip wheels
|
||||
# if: matrix.BUILD_TYPE == 'build' && matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ matrix.PIP_WHEELS_DIR }}
|
||||
# key: ${{ runner.os }}-pip-wheels-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/setup.py') }}-25-
|
||||
|
||||
# - name: Cache cargo index
|
||||
# if: matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ matrix.CARGO_INDEX_DIR }}
|
||||
# key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-25-
|
||||
|
||||
# - name: Cache cargo registry
|
||||
# if: matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ matrix.CARGO_REGISTRY_DIR }}
|
||||
# key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-25-
|
||||
|
||||
# - name: Cache cargo target
|
||||
# if: matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ github.workspace }}${{ matrix.SEP }}target
|
||||
# key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-25-
|
||||
|
||||
# - name: Cache cargo rslib
|
||||
# if: matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ github.workspace }}${{ matrix.SEP }}rslib${{ matrix.SEP }}target
|
||||
# key: ${{ runner.os }}-cargo-rslib-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-25-
|
||||
|
||||
# - name: Cache cargo rspy
|
||||
# if: matrix.python == '3.8'
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: ${{ github.workspace }}${{ matrix.SEP }}rspy${{ matrix.SEP }}target
|
||||
# key: ${{ runner.os }}-cargo-rspy-${{ hashFiles('**/requirements.*') }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/Makefile') }}-${{ hashFiles('**/Cargo.toml') }}-${{ matrix.BUILD_TYPE }}-25-
|
||||
|
||||
# - name: Set up curl pyaudio, rsync
|
||||
# - name: Windows
|
||||
# if: matrix.os == 'windows-latest'
|
||||
# shell: cmd
|
||||
# run: |
|
||||
# echo on
|
||||
# curl --fail -LO %WINDOWS_CI_TOOLS%/%pyaudio%
|
||||
# curl --fail -LO %WINDOWS_CI_TOOLS%/%rsyncbin%
|
||||
# Set-PSDebug -Trace 1
|
||||
|
||||
# :: https://stackoverflow.com/questions/1359793/programmatically-extract-tar-gz
|
||||
# 7z x "%rsyncbin%" -so | 7z x -aoa -si -ttar -o"%programfiles%\Git"
|
||||
# $env:PATH = "$env:PATH;c:\msys64\usr\bin"
|
||||
|
||||
# - name: Set up Windows scoop, gettext, ripgrep
|
||||
# if: matrix.os == 'windows-latest'
|
||||
# shell: cmd
|
||||
# run: |
|
||||
# echo on
|
||||
# powershell -executionpolicy bypass "& Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')"
|
||||
# scoop install -g gettext ripgrep
|
||||
# $env:ANKI_IMPORT_ONLY = "1"
|
||||
# $PYTHON = Get-Command python | Select-Object -ExpandProperty Definition
|
||||
# $BAZEL = ".\bazel.exe --output_user_root=..\bazout"
|
||||
# $ARGS = "--action_env=\`"PYTHON_SYS_EXECUTABLE=$PYTHON\`""
|
||||
|
||||
# - name: Check Windows wheels
|
||||
# if: matrix.BUILD_TYPE == 'build' && matrix.os == 'windows-latest'
|
||||
# shell: cmd
|
||||
# run: |
|
||||
# echo on
|
||||
# copy %pyaudio% dist
|
||||
# cd dist
|
||||
# setlocal EnableDelayedExpansion
|
||||
# cmd /C set "wheels=" && for /f "delims=" %%i in ('dir /b *.*') DO set "wheels="%%i" !wheels!"
|
||||
# curl --fail -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-windows-amd64.exe -o .\bazel.exe
|
||||
|
||||
# python -m pip install pyqtwebengine %wheels%
|
||||
# python -c "import aqt; # aqt.run()"
|
||||
# # try build a few times to compensate for rollup flakiness
|
||||
|
||||
# - name: Check Linux/Mac OS wheels
|
||||
# if: matrix.BUILD_TYPE == 'build' && ( matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' )
|
||||
# run: |
|
||||
# set -x
|
||||
# cd dist
|
||||
# python -m pip install pyqtwebengine pyaudio *.*
|
||||
# python -c "import aqt; # aqt.run()"
|
||||
|
||||
# - name: Upload python wheels
|
||||
# if: matrix.BUILD_TYPE == 'build'
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: ${{ matrix.ANKI_PYTHON_WHEELS }}${{ matrix.python }}
|
||||
# path: dist
|
||||
# echo "Currently broken"
|
||||
# # for ($i=1; $i -le 4; $i++) { Invoke-Expression "$BAZEL build qt:runanki -k $ARGS" -ErrorAction "continue" }
|
||||
# # Invoke-Expression "$BAZEL build qt:runanki -k $ARGS"
|
||||
# # Invoke-Expression "$BAZEL test ... $ARGS"
|
||||
# # Invoke-Expression "$BAZEL run qt:runanki $ARGS"
|
||||
|
||||
# - name: Upload to PyPi Windows
|
||||
# if: matrix.BUILD_TYPE == 'build' && startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest'
|
||||
|
Loading…
Reference in New Issue
Block a user