From e90a322f1967be92c85c7e191a48cb2fdcf3afd4 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 24 Aug 2021 20:37:56 +0200 Subject: [PATCH] CI: building the app in the cmd for windows instead of bash --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91c6d42c..8bec4450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,17 +43,17 @@ jobs: - name: Enabling windows compilations tools if: matrix.artifact == 'windows' uses: ilammy/msvc-dev-cmd@v1 - - name: Build the app + - name: Select the project to build shell: bash + run: echo "PROJECT=$([ "${{runner.os}}" == "Windows" ] && echo Kyoo.WindowsHost || echo Kyoo)" >> $GITHUB_ENV + - name: Build the app env: INCLUDE: ${{env.INCLUDE}};C:\Program Files\FFmpeg\include LIB: ${{env.LIB}};C:\Program Files\FFmpeg\lib LIBPATH: ${{env.LIBPATH}};C:\Program Files\FFmpeg\lib CFLAGS: -I/usr/local/include LDFLAGS: -L/usr/local/lib - run: | - project=$([ "${{runner.os}}" == "Windows" ] && echo Kyoo.WindowsHost || echo Kyoo) - dotnet publish -r ${{matrix.runtime}} -c Release -o dist $project + run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist ${{env.PROJECT}} - name: Compression output shell: bash run: |