Adjust GitHub configuration to build with SWORD 574325 #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Sword Windows binaries | |
on: [ repository_dispatch, push ] | |
jobs: | |
build-win32: | |
name: Build Sword & dependencies for Win32 | |
runs-on: windows-2019 | |
steps: | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- uses: actions/checkout@v1 | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
git lfs install --skip-smudge | |
git submodule init | |
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update | |
git lfs install --force | |
- name: Create build directories | |
shell: cmd | |
run: | | |
mkdir dist | |
mkdir dist\lib | |
- name: Build zlib | |
run: powershell .\build_zlib.bat v1.2.9 dist\lib | |
- name: Build xz | |
run: powershell .\build_xz.bat v5.2.4 dist\lib | |
- name: Build bzip2 | |
run: powershell .\build_bzip2.bat bzip2-1.0.8 dist\lib | |
- name: Build curl | |
run: powershell .\build_curl.bat curl-7_68_0 dist\lib | |
- name: Build icu | |
run: powershell .\build_icu.bat release-65-1 dist\lib | |
- name: Build sword | |
run: powershell .\build_sword.bat 574325 dist\lib | |
- name: Copy sword headers | |
shell: cmd | |
run: | | |
xcopy sword\include dist\include /E /I | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
name: sword-build-win32-latest | |
path: dist |