some options to potentially reduce startup time and memory consumption #59
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 and Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
windows_build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build for Windows (x64) | |
run: dotnet publish -c Release -r win-x64 | |
- name: Upload x64 Release | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Release (Windows) | |
path: D:\a\OsuCollectionDownloader\OsuCollectionDownloader\OsuCollectionDownloader\bin\Release\net8.0\win-x64\publish\ | |
macos_build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install required dependencies for AOT publishing | |
run: brew install binutils | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build for MacOS (x64) | |
run: dotnet publish -c Release -r osx-x64 | |
- name: Upload Release | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Release (MacOS) | |
path: /Users/runner/work/OsuCollectionDownloader/OsuCollectionDownloader/OsuCollectionDownloader/bin/Release/net8.0/osx-x64/publish/ | |
linux_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build for Linux (x64) | |
run: dotnet publish -c Release -r linux-x64 | |
- name: Upload x64 Release | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Release (Linux) | |
path: /home/runner/work/OsuCollectionDownloader/OsuCollectionDownloader/OsuCollectionDownloader/bin/Release/net8.0/linux-x64/publish/ |