doc: update readme reflecting windows terminal's status #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build CLI (dev) | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
permissions: write-all | |
name: Build CLI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get commit hash | |
id: short | |
uses: prompt/actions-commit-hash@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "6.x" # SDK Version to use; x will use the latest version of the 3.1 channel | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Build win-x64 | |
run: | | |
cd SonicLair.Cli | |
dotnet publish --configuration Release --self-contained true --runtime win-x64 --verbosity quiet -p:PublishSingleFile=true -o builtWinx64 | |
rm -r builtWinx64/libvlc/win-x86 | |
rm -r builtWinx64/*.pdb | |
rm -r builtWinx64/libvlc.dylib | |
cd .. | |
mkdir win64 | |
cp -r SonicLair.Cli/builtWinx64/libvlc win64/ | |
cp SonicLair.Cli/builtWinx64/SonicLair.Cli.exe win64/ | |
- name: Build win-x86 | |
run: | | |
cd SonicLair.Cli | |
dotnet publish --configuration Release --self-contained true --runtime win-x86 --verbosity quiet -p:PublishSingleFile=true -o builtWinx86 | |
rm -r builtWinx86/libvlc/win-x64 | |
rm -r builtWinx86/*.pdb | |
rm -r builtWinx86/libvlc.dylib | |
cd .. | |
mkdir win86 | |
cp -r SonicLair.Cli/builtWinx86/libvlc win86/ | |
cp SonicLair.Cli/builtWinx86/SonicLair.Cli.exe win86/ | |
- name: Build osx-x64 | |
run: cd SonicLair.Cli && dotnet publish --configuration Release --self-contained true --runtime osx-x64 --verbosity quiet -p:PublishSingleFile=true -o builtOsx | |
- name: Build linux-x64 | |
run: | | |
cd SonicLair.Cli | |
dotnet publish --configuration Release --self-contained true --runtime linux-x64 --verbosity quiet -p:PublishSingleFile=true -o builtLinux64 | |
- name: Build linux-arm64 | |
run: | | |
cd SonicLair.Cli | |
dotnet publish --configuration Release --self-contained true --runtime linux-arm64 --verbosity quiet -p:PublishSingleFile=true -o builtLinuxArm64 | |
- name: Attach win-x64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SonicLair.Cli-${{steps.short.outputs.short}}-win-x64 | |
path: win64 | |
- name: Attach win-x86 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SonicLair.Cli-${{steps.short.outputs.short}}-win-x86 | |
path: win86 | |
- name: Attach macos-x64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SonicLair.Cli-${{steps.short.outputs.short}}-macos-x64 | |
path: | | |
SonicLair.Cli/builtOsx/SonicLair.Cli | |
SonicLair.Cli/builtOsx/libvlc.dylib | |
- name: Attach linux-x64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SonicLair.Cli-${{steps.short.outputs.short}}-linux-x64 | |
path: SonicLair.Cli/builtLinux64/SonicLair.Cli | |
- name: Attach linux-arm64 artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SonicLair.Cli-${{steps.short.outputs.short}}-linux-arm64 | |
path: SonicLair.Cli/builtLinuxArm64/SonicLair.Cli |