Skip to content

ci: upload to releases #30

ci: upload to releases

ci: upload to releases #30

Workflow file for this run

name: CI
on: push
jobs:
build:
#name:
runs-on: windows-2019
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
with:
submodules: 'true'
#- name: Install vc141_xp
# run: |
# Start-Process "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList 'modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" --quiet --add Microsoft.VisualStudio.Component.WinXP' -Wait -PassThru
- name: Create Build Folder
run: |
cmake -E make_directory ${{ runner.workspace }}/build
- name: Configure CMake
shell: bash
working-directory: ${{ runner.workspace }}/build
run: |
cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -A Win32
# cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -T v141_xp -A Win32
- name: Build
working-directory: ${{ runner.workspace }}/build
shell: bash
run: |
cmake --build . --config Release
- name: Upload Artifact to Actions
uses: actions/upload-artifact@v2
with:
#name: ${{ env.PKGNAME }}-Installer
path: ${{ runner.workspace }}/build/Release
- name: Upload Artifact to Releases
if: ${{ github.ref == 'refs/heads/master' }}
uses: ncipollo/release-action@v1
with:
artifacts: ${{ runner.workspace }}/build/Release
allowUpdates: true
name: "Continuous Release"
removeArtifacts: true
commit: "master"
tag: "continuous"