sword-build-win32 1.9.0-2024-01-21 #37
Workflow file for this run
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
on: | |
release: | |
types: [created] | |
name: Build and publish binaries | |
jobs: | |
build-win32: | |
name: Build Sword Windows binaries | |
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: Build libraries | |
run: powershell .\build_all.bat | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
name: sword-build-win32-release | |
path: dist | |
release-win32: | |
name: Publish Sword Windows binaries | |
needs: build-win32 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v1.0.0 | |
with: | |
name: sword-build-win32-release | |
- name: Zip artifacts for publishing | |
shell: bash | |
run: | | |
mv sword-build-win32-release sword-build-win32-${GITHUB_REF##*/} | |
zip -9 -r sword-build-win32-${GITHUB_REF##*/}.zip sword-build-win32* | |
- name: Publish artifacts | |
uses: skx/github-action-publish-binaries@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: 'sword-build-win32-*.zip' |