Skip to content

Commit

Permalink
Asks user for SDK input
Browse files Browse the repository at this point in the history
  • Loading branch information
fadillzzz committed Mar 31, 2024
1 parent 35de804 commit 60236b6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
sdk_link:
description: "Link to SDK (zip file): "
required: true

jobs:
build:
Expand All @@ -16,11 +15,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Download SDK
run: |
$sdk_link = ${{ github.event.inputs.sdk_link }}
Invoke-WebRequest -Uri $sdk_link -OutFile sdk.zip
Expand-Archive -Path sdk.zip -DestinationPath CppSDK
- name: Set up MSVC environment
uses: microsoft/[email protected]

- name: Install CMake
uses: kitware/[email protected]
- uses: lukka/get-cmake@latest

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

0 comments on commit 60236b6

Please sign in to comment.