diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 453df9ed..d4fe0ee2 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -1,50 +1,58 @@ -# ------------------------------------------------------------------------------ -# -# -# This code was generated. -# -# - To turn off auto-generation set: -# -# [GitHubActions (AutoGenerate = false)] -# -# - To trigger manual generation invoke: -# -# nuke --generate-configuration GitHubActions_continuous --host GitHubActions -# -# -# ------------------------------------------------------------------------------ - -name: continuous +name: "Build" on: push: branches: - development + paths-ignore: + - '**/*.md' + - '**/*.gitignore' + - '**/*.gitattributes' pull_request: branches: - development - + paths-ignore: + - '**/*.md' + - '**/*.gitignore' + - '**/*.gitattributes' + workflow_dispatch: + jobs: - ubuntu-latest: - name: ubuntu-latest - runs-on: ubuntu-latest + build: + name: Build + runs-on: windows-latest + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + DOTNET_NOLOGO: true + DOTNET_GENERATE_ASPNET_CERTIFICATE: false + DOTNET_ADD_GLOBAL_TOOLS_TO_PATH: false + DOTNET_MULTILEVEL_LOOKUP: 0 + DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true + TERM: xterm + steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: 'Cache: .nuke/temp, ~/.nuget/packages' - uses: actions/cache@v3 - with: - path: | - .nuke/temp - ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - - name: 'Run: Publish' - run: ./build.cmd Publish - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: 'Publish: .artifacts' - uses: actions/upload-artifact@v3 - with: - name: .artifacts - path: .artifacts + - uses: actions/checkout@v3 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.100 + + - name: Setup MSBUILD + uses: actions/setup-msbuild@v1.1 + + - uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} + restore-keys: | + ${{ runner.os }}-nuget- + + - name: Restore + run: dotnet restore + + - name: Publish + run: dotnet publish Platforms\HolyClient.Desktop\HolyClient.Desktop.csproj --configuration Release --no-restore -p:PublishDir=.artifacts + + diff --git a/Minecraft-Holy-Client.yaml b/Minecraft-Holy-Client.yaml index fdf8a7b0..70cbbf5b 100644 --- a/Minecraft-Holy-Client.yaml +++ b/Minecraft-Holy-Client.yaml @@ -54,6 +54,6 @@ jobs: run: dotnet restore - name: Publish - run: dotnet publish src\Platforms\HolyClient.Desktop\HolyClient.Desktop.csproj --configuration Release --no-restore -p:PublishDir=bin\preview + run: dotnet publish Platforms\HolyClient.Desktop\HolyClient.Desktop.csproj --configuration Release --no-restore -p:PublishDir=bin\preview diff --git a/src/Platforms/HolyClient.Desktop/HolyClient.Desktop.csproj b/src/Platforms/HolyClient.Desktop/HolyClient.Desktop.csproj index eb4881c5..648dd05f 100644 --- a/src/Platforms/HolyClient.Desktop/HolyClient.Desktop.csproj +++ b/src/Platforms/HolyClient.Desktop/HolyClient.Desktop.csproj @@ -5,8 +5,8 @@ One for Windows with net8.0-windows TFM, one for MacOS with net8.0-macos and one with net8.0 TFM for Linux.--> net8.0 enable - win-x64 - true + win-x64 + true true