Skip to content

More Migrate

More Migrate #769

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
jobs:
windows-build:
strategy:
matrix:
os: [ windows-2022, ubuntu-24.04 ]
config: [ Debug, Release ]
name: PR Build ${{matrix.os}} ${{matrix.config}}
runs-on: ${{ matrix.os }}
steps:
# Setup Environment
- uses: actions/checkout@v2
with:
path: "Soup"
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.x
- name: Setup Soup Build
uses: soupbuild/setup-soup@v1
with:
version: latest
# Build Soup
- name: Dotnet
run: dotnet --info
- name: Soup Where
run: swhere
- name: Print Local Config
if: matrix.os != 'windows-2022'
run: which dotnet
- name: Print Local Config
if: matrix.os == 'windows-2022'
run: type $HOME/.soup/LocalUserConfig.sml
- name: Print Local Config
if: matrix.os != 'windows-2022'
run: cat $HOME/.soup/LocalUserConfig.sml
- name: Soup Restore Client
run: soup restore ./Soup/Source/Client/CLI/
- name: Soup Build Client
run: soup build ./Soup/Source/Client/CLI/ -flavor ${{matrix.config}}
- name: Soup Run Version
run: soup run ./Soup/Source/Client/CLI/ -flavor ${{matrix.config}} -args version
- name: Soup Restore GenerateTest
run: soup restore ./Soup/Source/GenerateTest/
- name: Soup Build GenerateTest
run: soup build ./Soup/Source/GenerateTest/ -flavor ${{matrix.config}}
# - name: Soup Restore SWhere
# run: soup restore ./Soup/Source/GenerateSharp/Swhere/
# - name: Soup Build SWhere
# run: soup build ./Soup/Source/GenerateSharp/Swhere/ -flavor ${{matrix.config}}
# - name: Soup Restore PackageManager
# run: soup restore ./Soup/Source/GenerateSharp/PackageManager/
# - name: Soup Build PackageManager
# run: soup build ./Soup/Source/GenerateSharp/PackageManager/ -flavor ${{matrix.config}}
- name: Soup Restore Tools
run: soup restore ./Soup/Source/Client/Tools/
- name: Soup Build Tools
run: soup build ./Soup/Source/Client/Tools/ -flavor ${{matrix.config}}
# Build DotNet
- name: DotNet Restore
run: dotnet restore ./Soup/Source/GenerateSharp/GenerateSharp.sln
- name: DotNet Build
run: dotnet build -c ${{matrix.config}} --no-restore ./Soup/Source/GenerateSharp/GenerateSharp.sln
- name: DotNet Test
run: dotnet test -c ${{matrix.config}} --no-build --verbosity normal ./Soup/Source/GenerateSharp/GenerateSharp.sln
# Build Tools
- name: Soup Restore PrintGraph
run: soup restore ./Soup/Source/Tools/PrintGraph/
- name: Soup Build PrintGraph
run: soup build ./Soup/Source/Tools/PrintGraph/ -flavor ${{matrix.config}}
- name: Soup Restore PrintResults
run: soup restore ./Soup/Source/Tools/PrintResults/
- name: Soup Build PrintResults
run: soup build ./Soup/Source/Tools/PrintResults/ -flavor ${{matrix.config}}
- name: Soup Restore PrintValueTable
run: soup restore ./Soup/Source/Tools/PrintValueTable/
- name: Soup Build PrintValueTable
run: soup build ./Soup/Source/Tools/PrintValueTable/ -flavor ${{matrix.config}}
- name: Soup Restore Migrate
run: soup restore ./Soup/Source/GenerateSharp/Migrate/
- name: Soup Build Migrate
run: soup build ./Soup/Source/GenerateSharp/Migrate/ -flavor ${{matrix.config}}
# Build Samples
- name: Soup Restore C BuildExtension
run: soup restore ./Soup/Samples/C/BuildExtension/Executable/
- name: Soup Build C BuildExtension
run: soup build ./Soup/Samples/C/BuildExtension/Executable/ -flavor ${{matrix.config}}
- name: Soup Build C ConsoleApplication
run: soup build ./Soup/Samples/C/ConsoleApplication/ -flavor ${{matrix.config}}
- name: Soup Build C DynamicLibrary
run: soup build ./Soup/Samples/C/DynamicLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build C StaticLibrary
run: soup build ./Soup/Samples/C/StaticLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build C WindowsApplication
if: matrix.os == 'windows-2022'
run: soup build ./Soup/Samples/C/WindowsApplication/ -flavor ${{matrix.config}}
- name: Soup Restore Cpp BuildExtension
run: soup restore ./Soup/Samples/Cpp/BuildExtension/Executable/
- name: Soup Build Cpp BuildExtension
run: soup build ./Soup/Samples/Cpp/BuildExtension/Executable/ -flavor ${{matrix.config}}
- name: Soup Build Cpp ConsoleApplication
run: soup build ./Soup/Samples/Cpp/ConsoleApplication/ -flavor ${{matrix.config}}
- name: Soup Build Cpp DirectX
if: matrix.os == 'windows-2022'
run: soup build ./Soup/Samples/Cpp/DirectX/ -flavor ${{matrix.config}}
- name: Soup Build Cpp DynamicLibrary
run: soup build ./Soup/Samples/Cpp/DynamicLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build Cpp ModuleInterface
run: soup build ./Soup/Samples/Cpp/ModuleInterface/ -flavor ${{matrix.config}}
- name: Soup Restore Cpp ParseJsonFile
run: soup restore ./Soup/Samples/Cpp/ParseJsonFile/
- name: Soup Build Cpp ParseJsonFile
run: soup build ./Soup/Samples/Cpp/ParseJsonFile/ -flavor ${{matrix.config}}
- name: Soup Build Cpp StaticLibrary
run: soup build ./Soup/Samples/Cpp/StaticLibrary/Application/ -flavor ${{matrix.config}}
- name: Soup Build Cpp WindowsApplication
if: matrix.os == 'windows-2022'
run: soup build ./Soup/Samples/Cpp/WindowsApplication/ -flavor ${{matrix.config}}
- name: Soup Restore CSharp BuildExtension
run: soup restore ./Soup/Samples/CSharp/BuildExtension/Executable/
- name: Soup Build CSharp BuildExtension
run: soup build ./Soup/Samples/CSharp/BuildExtension/Executable/ -flavor ${{matrix.config}}
- name: Soup Build CSharp ConsoleApplication
run: soup build ./Soup/Samples/CSharp/ConsoleApplication/ -flavor ${{matrix.config}}
- name: Soup Build CSharp Library
run: soup build ./Soup/Samples/CSharp/Library/Application/ -flavor ${{matrix.config}}