Skip to content

Commit

Permalink
CICD Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fadillzzz authored Mar 31, 2024
1 parent 2dff437 commit 194b0c7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Download SDK
run: |
$sdk_link = "${{ vars.SDK_LINK }}"
Invoke-WebRequest -Uri $sdk_link -OutFile sdk.zip
Expand-Archive -Path sdk.zip -DestinationPath CppSDK
- name: Set up MSVC environment
uses: microsoft/setup-msbuild@v2

- uses: lukka/get-cmake@latest

- name: Configure CMake
run: cmake -B build -S .

- name: Build project
run: cmake --build build --config Release

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: TOFInternal.dll
path: build/src/Release/TOFInternal.dll

0 comments on commit 194b0c7

Please sign in to comment.