Skip to content

sword-build-win32 1.9.0-2024-01-21_02 #38

sword-build-win32 1.9.0-2024-01-21_02

sword-build-win32 1.9.0-2024-01-21_02 #38

Workflow file for this run

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/[email protected]
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/[email protected]
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'