-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (42 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
51 lines (42 loc) · 1.23 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
name: CI
on:
push:
branches: [master, main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build-test-package:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: Restore
run: dotnet restore .\CodexUsageWidget.slnx
- name: Build
run: dotnet build .\CodexUsageWidget.slnx -c Release --no-restore
- name: Test
run: dotnet test .\CodexUsageWidget.slnx -c Release --no-build
- name: Publish portable Windows build
run: >-
dotnet publish .\src\CodexUsageWidget\CodexUsageWidget.csproj
-c Release
-r win-x64
--self-contained true
-p:PublishSingleFile=true
-p:IncludeNativeLibrariesForSelfExtract=true
-p:PublishTrimmed=false
-p:DebugType=None
-p:DebugSymbols=false
-o .\artifacts\ci\win-x64
- name: Upload portable build
uses: actions/upload-artifact@v7
with:
name: codex-usage-widget-win-x64
path: .\artifacts\ci\win-x64\
if-no-files-found: error