Skip to content

Merge branch 'master' of github.com:eprilx/FFDConverter #64

Merge branch 'master' of github.com:eprilx/FFDConverter

Merge branch 'master' of github.com:eprilx/FFDConverter #64

Workflow file for this run

name: Check build
on:
workflow_dispatch:
push:
branches: [ master ]
paths-ignore: [ "**.md" ]
pull_request:
branches: [ master ]
paths-ignore: [ "**.md" ]
jobs:
check-console-win:
runs-on: windows-latest
steps:
# setup
- name: checkout
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- uses: microsoft/[email protected]
- name: Get version
uses: naminodarie/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: ./FFDConverter/FFDConverter.csproj
- name: publish FFDConverter
run: msbuild .\FFDConverter\FFDConverter.csproj -t:restore -t:Build -t:Publish /p:PublishDir="../publish/console/windows" /p:Configuration=Release /p:SelfContained=False /p:PublishReadyToRun=False /p:PublishTrimmed=False
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: windows_${{steps.get-version.outputs.assembly-version}}
path: ./publish/console/windows
check-gui-win:
runs-on: windows-latest
steps:
# setup
- name: checkout
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- uses: microsoft/[email protected]
- name: Get version
uses: naminodarie/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: ./FFDConverterGUI/FFDConverterGUI.csproj
- name: publish FFDConverter
run: msbuild .\FFDConverterGUI\FFDConverterGUI.csproj -t:restore -t:Build -t:Publish /p:PublishDir="../publish/gui/windows" /p:Configuration=Release /p:SelfContained=False /p:PublishReadyToRun=False /p:PublishTrimmed=False
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: windows_gui_${{steps.get-version.outputs.assembly-version}}
path: ./publish/gui/windows
check-console-linux:
runs-on: ubuntu-latest
steps:
# setup
- name: checkout
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore FFDConverter/FFDConverter.csproj
- name: Build
run: dotnet build FFDConverter/FFDConverter.csproj --no-restore
- name: Test
run: dotnet test FFDConverter/FFDConverter.csproj --no-build --verbosity normal
- name: Publish
run: dotnet publish FFDConverter/FFDConverter.csproj -c Release -o "publish/console/linux/"
- name: Get version
uses: naminodarie/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: ./FFDConverter/FFDConverter.csproj
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: linux_${{steps.get-version.outputs.assembly-version}}
path: /home/runner/work/FFDConverter/FFDConverter/publish/console/linux