Skip to content

Commit 066715a

Browse files
committed
Initial commit
0 parents  commit 066715a

85 files changed

Lines changed: 9701 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build
2+
permissions:
3+
contents: write
4+
5+
on:
6+
push:
7+
tags:
8+
- "*"
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
dotnet-version: [ '7.0.x' ]
17+
rid: ['win-x64', 'win-x86', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Setup .NET SDK ${{ matrix.dotnet-version }}
22+
uses: actions/setup-dotnet@v3
23+
with:
24+
dotnet-version: ${{ matrix.dotnet-version }}
25+
- name: Install dependencies
26+
run: dotnet restore -r ${{ matrix.rid }}
27+
- name: Publish
28+
run: |
29+
dotnet publish XvdTool.Streaming/XvdTool.Streaming.csproj -c Release --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} --no-self-contained
30+
zip -r ${{ matrix.rid }}.zip ./${{ matrix.rid }}/*
31+
- name: Upload artifacts
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: ${{ matrix.rid }}.zip
35+
path: ./${{ matrix.rid }}.zip
36+
37+
make-release:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Download artifacts
43+
uses: actions/download-artifact@v3
44+
with:
45+
path: ./artifacts/
46+
- name: Make release
47+
uses: softprops/action-gh-release@v0.1.14
48+
with:
49+
files: ./artifacts/**/*
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)