Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 3 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ jobs:
python-version: 3.9,
}
- {
name: "MacOS_Latest",
os: macos-latest,
name: "MacOS_13",
os: macos-13,
python-version: 3.9,
}
- {
name: "Windows Latest",
os: windows-latest,
python-version: 3.9,
archiver: "7z a"
}

steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -64,40 +58,11 @@ jobs:
export PATH=$PATH:/Users/runner/work/KDSource/KDinstall/bin
kdtool -h
kdtool resample -h
- name: Install and test C API on Windows
if: startsWith(matrix.config.name, 'Windows')
run: |
$KDDIR = "$pwd"
$INSTALLDIR = "$pwd\..\KDinstall"
mkdir dependencies
cd dependencies
Invoke-Webrequest http://xmlsoft.org/sources/win32/64bit/libxml2-2.9.3-win32-x86_64.7z -Outfile libxml2-2.9.3-win32-x86_64.7z
Invoke-Webrequest http://xmlsoft.org/sources/win32/64bit/iconv-1.14-win32-x86_64.7z -Outfile iconv-1.14-win32-x86_64.7z
Invoke-Webrequest http://xmlsoft.org/sources/win32/64bit/zlib-1.2.8-win32-x86_64.7z -Outfile zlib-1.2.8-win32-x86_64.7z
7z x libxml2-2.9.3-win32-x86_64.7z -o"libxml2-2.9.3-win32-x86_64" -y
7z x iconv-1.14-win32-x86_64.7z -o"iconv-1.14-win32-x86_64" -y
7z x zlib-1.2.8-win32-x86_64.7z -o"zlib-1.2.8-win32-x86_64" -y
$env:PATH = "$KDDIR\dependencies\libxml2-2.9.3-win32-x86_64;" + $env:PATH
$env:PATH = "$KDDIR\dependencies\iconv-1.14-win32-x86_64;" + $env:PATH
$env:PATH = "$KDDIR\dependencies\zlib-1.2.8-win32-x86_64;" + $env:PATH
$env:C_INCLUDE_PATH="$KDDIR\dependencies\iconv-1.14-win32-x86_64\include"
cd ..
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" -G "MinGW Makefiles"
mingw32-make
mingw32-make test
mingw32-make install
cd ..
echo "$INSTALLDIR\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "$INSTALLDIR\lib" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
$env:PATH += ";$INSTALLDIR\bin;$INSTALLDIR\lib"
kdtool-resample -h
- name: Set up Python ${{ matrix.config.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version}}
- name: Install tox
run: pip install tox tox-gh-actions
- name: Test with tox
run: tox -r -c python
run: tox -r -c python
Loading