Skip to content

Commit 90c2cbf

Browse files
committed
Add Workflows
1 parent b31c315 commit 90c2cbf

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
15+
include:
16+
- os: ubuntu-latest
17+
runtime: linux-x64
18+
- os: windows-latest
19+
runtime: win-x64
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-dotnet@v4
26+
with:
27+
dotnet-version: '10.0.x'
28+
29+
- run: dotnet publish -c Release -r ${{ matrix.runtime }}
30+
31+
- uses: actions/upload-artifact@v4
32+
if: success()
33+
with:
34+
name: StringConv-ci-${{ matrix.runtime }}
35+
path: StringConv/bin/Release/net10.0/${{ matrix.runtime }}/publish

0 commit comments

Comments
 (0)