-
Notifications
You must be signed in to change notification settings - Fork 244
53 lines (50 loc) · 1.29 KB
/
setup.yaml
File metadata and controls
53 lines (50 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Setup ⚙️
on:
workflow_call:
inputs:
arguments:
required: true
type: string
configuration:
required: false
type: string
default: "Release"
workflow_dispatch:
inputs:
arguments:
required: true
description: 'Arguments to pass to the setup script'
type: string
configuration:
required: true
description: 'Run Configuration'
default: 'Release'
type: choice
options:
- Release
- Debug
env:
git_email: "${{ github.actor }}@users.noreply.github.com"
git_actor: "${{ github.actor }}"
jobs:
setup:
name: Setup job
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
lfs: true
ssh-key: ${{ secrets.DEPLOY_KEY }}
submodules: recursive
fetch-depth: 100
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Run
run: |
cd Setup
dotnet run ${{ inputs.arguments || github.event.inputs.arguments }} -c ${{ inputs.configuration || github.event.inputs.configuration }}
git reset --hard