Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
add github action build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vektor committed Jan 30, 2022
1 parent a11ed08 commit b793ca0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build & deploy

on:
push:
branches-ignore:
- '**'
tags:
- 'v*'

jobs:
x64_win32:
runs-on: windows-2019

defaults:
run:
shell: cmd

steps:
- uses: microsoft/setup-msbuild@v1.0.2
- uses: actions/checkout@v2.2.0
with:
submodules: 'recursive'

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9
with:
cmake-version: '3.17.x'

- name: Build Release
run: release.bat

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

- name: Upload ClosedIV.asi
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BUILD/BIN/Release/ClosedIV.asi
asset_name: ClosedIV.asi
asset_content_type: application/octet-stream
2 changes: 2 additions & 0 deletions release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cmake -B BUILD .
cmake --build BUILD --config Release

0 comments on commit b793ca0

Please sign in to comment.