-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 973 Bytes
/
ci.yml
File metadata and controls
45 lines (38 loc) · 973 Bytes
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
name: CI
on:
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
push:
branches:
- master # Run the workflow when pushing to the main branch
pull_request:
branches:
- '*' # Run the workflow for all pull requests
permissions:
contents: read
defaults:
run:
shell: pwsh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Run the workflow for all pull requests
- name: Build and Test
env:
PACKAGE_VERSION: 0.0.0
run: ./Build.ps1
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
if-no-files-found: error
retention-days: 7
path: artifacts/**/*