Usability enhancements for dashboards and better links to o2 #55
This file contains hidden or 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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Build the project | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Publish Win x64 | |
#run: dotnet publish /home/runner/work/entity-explorer/entity-explorer/observe-entity-explorer.csproj -p:PublishProfileFullPath=/home/runner/work/entity-explorer/entity-explorer/Properties/PublisProfiles/win-x64-self-contained.pubxml -o /home/runner/work/entity-explorer/entity-explorer/bin/publish/win | |
# Using pubxml isn't working in Github runner, using manual overrides | |
run: dotnet publish /home/runner/work/entity-explorer/entity-explorer/observe-entity-explorer.csproj --self-contained --runtime win-x64 -c Debug -p:PublishSingleFile=true -o /home/runner/work/entity-explorer/entity-explorer/bin/publish/win-x64 | |
- name: Publish OSX x64 | |
run: dotnet publish /home/runner/work/entity-explorer/entity-explorer/observe-entity-explorer.csproj --self-contained --runtime osx-x64 -c Debug -p:PublishSingleFile=false -o /home/runner/work/entity-explorer/entity-explorer/bin/publish/osx-x64 | |
- name: Publish OSX ARM | |
run: dotnet publish /home/runner/work/entity-explorer/entity-explorer/observe-entity-explorer.csproj --self-contained --runtime osx-arm64 -c Debug -p:PublishSingleFile=false -o /home/runner/work/entity-explorer/entity-explorer/bin/publish/osx-arm64 | |
- name: Publish Linux x64 | |
run: dotnet publish /home/runner/work/entity-explorer/entity-explorer/observe-entity-explorer.csproj --self-contained --runtime linux-x64 -c Debug -p:PublishSingleFile=true -o /home/runner/work/entity-explorer/entity-explorer/bin/publish/linux-x64 | |
# - name: Change Dir | |
# run: cd /home/runner/work/entity-explorer/entity-explorer/bin/publish/win | |
- name: Install zip utility | |
uses: montudor/action-zip@v1 | |
- name: Zip Win x64 | |
run: zip -qq -r /home/runner/work/entity-explorer/entity-explorer/bin/publish/observe-entity-explorer.win-x64.zip * | |
working-directory: /home/runner/work/entity-explorer/entity-explorer/bin/publish/win-x64 | |
- name: Zip OSX x64 | |
run: zip -qq -r /home/runner/work/entity-explorer/entity-explorer/bin/publish/observe-entity-explorer.osx-x64.zip * | |
working-directory: /home/runner/work/entity-explorer/entity-explorer/bin/publish/osx-x64 | |
- name: Zip OSX arm64 | |
run: zip -qq -r /home/runner/work/entity-explorer/entity-explorer/bin/publish/observe-entity-explorer.osx-arm64.zip * | |
working-directory: /home/runner/work/entity-explorer/entity-explorer/bin/publish/osx-arm64 | |
- name: Zip Linux x64 | |
run: zip -qq -r /home/runner/work/entity-explorer/entity-explorer/bin/publish/observe-entity-explorer.linux-x64.zip * | |
working-directory: /home/runner/work/entity-explorer/entity-explorer/bin/publish/linux-x64 | |
- name: Upload build results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-results | |
path: /home/runner/work/entity-explorer/entity-explorer/bin/publish/observe-entity-explorer.*.zip | |
# - name: View Results | |
# run: ls -l /home/runner/work/entity-explorer/entity-explorer/* | |
# - name: View Results | |
# run: ls -l /home/runner/work/entity-explorer/entity-explorer/*/* | |
# - name: View Results | |
# run: ls -l /home/runner/work/entity-explorer/entity-explorer/*/*/* | |
# - name: View Results | |
# run: ls -l /home/runner/work/entity-explorer/entity-explorer/*/*/*/* | |
# - name: Test | |
# run: dotnet test --no-build --verbosity normal |