Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ committed Aug 16, 2023
0 parents commit 066715a
Show file tree
Hide file tree
Showing 85 changed files with 9,701 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build
permissions:
contents: write

on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
rid: ['win-x64', 'win-x86', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']

steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore -r ${{ matrix.rid }}
- name: Publish
run: |
dotnet publish XvdTool.Streaming/XvdTool.Streaming.csproj -c Release --no-restore -o ./${{ matrix.rid }} -r ${{ matrix.rid }} --no-self-contained
zip -r ${{ matrix.rid }}.zip ./${{ matrix.rid }}/*
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.rid }}.zip
path: ./${{ matrix.rid }}.zip

make-release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: ./artifacts/
- name: Make release
uses: softprops/action-gh-release@v0.1.14
with:
files: ./artifacts/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 066715a

Please sign in to comment.