Update build.yml
This commit is contained in:
parent
1dc7899f3e
commit
fe93e85a3f
|
@ -22,7 +22,7 @@ jobs:
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{env.DOTNET_VERSION}}
|
dotnet-version: ${{env.DOTNET_VERSION}}
|
||||||
- name: Enable Extra Platforms
|
- name: Enable Extra Platforms In SDK
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
BUNDLEDVERSIONS="${{env.DOTNET_ROOT}}/sdk/${DOTNET_VERSION}/Microsoft.NETCoreSdk.BundledVersions.props"
|
BUNDLEDVERSIONS="${{env.DOTNET_ROOT}}/sdk/${DOTNET_VERSION}/Microsoft.NETCoreSdk.BundledVersions.props"
|
||||||
|
@ -33,6 +33,12 @@ jobs:
|
||||||
echo "Enabling extra platform support"
|
echo "Enabling extra platform support"
|
||||||
sed -i.ORI 's/osx-x64/osx-x64;freebsd-x64;linux-x86/' "$BUNDLEDVERSIONS"
|
sed -i.ORI 's/osx-x64/osx-x64;freebsd-x64;linux-x86/' "$BUNDLEDVERSIONS"
|
||||||
fi
|
fi
|
||||||
|
- name: Enable Extra Platforms
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if grep -qv freebsd-x64 src/Directory.Build.props; then
|
||||||
|
sed -i'' -e "s^<RuntimeIdentifiers>\(.*\)</RuntimeIdentifiers>^<RuntimeIdentifiers>\1;freebsd-x64;linux-x86</RuntimeIdentifiers>^g" src/Directory.Build.props
|
||||||
|
fi
|
||||||
- name: Build Backend
|
- name: Build Backend
|
||||||
shell: bash
|
shell: bash
|
||||||
run: dotnet msbuild -restore ${{SOLUTION_FILE}} -p:Configuration=Release -p:Platform=Windows -t:PublishAllRids
|
run: dotnet msbuild -restore ${{env.SOLUTION_FILE}} -p:Configuration=Release -p:Platform=Windows -t:PublishAllRids
|
||||||
|
|
Loading…
Reference in New Issue