mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
CI: building the app in the cmd for windows instead of bash
This commit is contained in:
parent
ada55f73d7
commit
e90a322f19
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -43,17 +43,17 @@ jobs:
|
|||||||
- name: Enabling windows compilations tools
|
- name: Enabling windows compilations tools
|
||||||
if: matrix.artifact == 'windows'
|
if: matrix.artifact == 'windows'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
- name: Build the app
|
- name: Select the project to build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
run: echo "PROJECT=$([ "${{runner.os}}" == "Windows" ] && echo Kyoo.WindowsHost || echo Kyoo)" >> $GITHUB_ENV
|
||||||
|
- name: Build the app
|
||||||
env:
|
env:
|
||||||
INCLUDE: ${{env.INCLUDE}};C:\Program Files\FFmpeg\include
|
INCLUDE: ${{env.INCLUDE}};C:\Program Files\FFmpeg\include
|
||||||
LIB: ${{env.LIB}};C:\Program Files\FFmpeg\lib
|
LIB: ${{env.LIB}};C:\Program Files\FFmpeg\lib
|
||||||
LIBPATH: ${{env.LIBPATH}};C:\Program Files\FFmpeg\lib
|
LIBPATH: ${{env.LIBPATH}};C:\Program Files\FFmpeg\lib
|
||||||
CFLAGS: -I/usr/local/include
|
CFLAGS: -I/usr/local/include
|
||||||
LDFLAGS: -L/usr/local/lib
|
LDFLAGS: -L/usr/local/lib
|
||||||
run: |
|
run: dotnet publish -r ${{matrix.runtime}} -c Release -o dist ${{env.PROJECT}}
|
||||||
project=$([ "${{runner.os}}" == "Windows" ] && echo Kyoo.WindowsHost || echo Kyoo)
|
|
||||||
dotnet publish -r ${{matrix.runtime}} -c Release -o dist $project
|
|
||||||
- name: Compression output
|
- name: Compression output
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user