This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
let's see what i was doing some time ago #46
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 - Testing | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSBuild path | |
uses: microsoft/[email protected] | |
- name: Restore NuGet packages | |
run: nuget restore src/betterlauncher-nextgen/betterlauncher-nextgen.sln | |
- name: Build project | |
run: msbuild.exe /t:build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath="bin/Release/" src/betterlauncher-nextgen/betterlauncher-nextgen.csproj | |
- name: Test directory - src/betterlauncher-nextgen/bin/release | |
run: dir src/betterlauncher-nextgen/bin/Release/ | |
- name: Get file size | |
id: get_file_size | |
run: | | |
$size = (Get-ChildItem -Path "src/betterlauncher-nextgen/bin/Release/betterlauncher-nextgen.exe" | Measure-Object -Property Length -Sum).Sum / 1KB | |
echo "::set-output name=size_kb::$size" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: BetterLauncher_${{ github.run_id }}_${{ steps.get_file_size.outputs.size_kb }}kb | |
path: src/betterlauncher-nextgen/bin/Release/betterlauncher-nextgen.exe |