From af9e34e9eb05c840764b955b3321a4cd8dce441c Mon Sep 17 00:00:00 2001 From: ema Date: Wed, 31 Jul 2024 14:39:12 +0800 Subject: [PATCH] ci: check build --- .github/workflows/library.nuget.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/library.nuget.yml diff --git a/.github/workflows/library.nuget.yml b/.github/workflows/library.nuget.yml new file mode 100644 index 0000000..48ca9b2 --- /dev/null +++ b/.github/workflows/library.nuget.yml @@ -0,0 +1,38 @@ +name: MediaInfoDLL Library + +on: + release: + types: [created] + push: + branches: + - v2 + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 8.0.x + + - name: Setup Windows SDK + uses: GuillaumeFalourd/setup-windows10-sdk-action@v1.5 + + - name: Prepare dummy files + run: cd build && setup_build.cmd + + - name: Install dependencies of Uninst + run: cd build && dotnet restore MicaSetup\MicaSetup.Uninst.csproj + + - name: Install dependencies of Setup + run: cd build && dotnet restore MicaSetup\MicaSetup.csproj + + - name: Build Uninst + run: cd build && dotnet build MicaSetup\MicaSetup.Uninst.csproj --configuration Release --no-restore + + - name: Build Setup + run: cd build && dotnet build MicaSetup\MicaSetup.csproj --configuration Release --no-restore