File Downloader Submodule Major Refactor (Hi3Helper.Http) #993
Workflow file for this run
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
# Credits to @Scighost from Starward for his contributions! | |
name: Build-Canary | |
#run-name: Canary Build for ${{ github.ref }} | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches-ignore: | |
- 'stable' | |
- 'preview' | |
- 'translations_**' | |
# schedule: | |
# - cron: '0 0 * * 0' # At 00:00 on Sunday | |
jobs: | |
build: | |
# runs-on: [self-hosted, linux] | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
configuration: [Release] # No need to distribute Debug builds | |
platform: [x64] | |
framework: [net8.0-windows10.0.22621.0] | |
env: | |
Configuration: ${{ matrix.configuration }} | |
Platform: ${{ matrix.platform }} | |
DOTNET_INSTALL_DIR: '.\.dotnet' | |
DOTNET_VERSION: '8.x' | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.5 | |
with: | |
submodules: recursive | |
- name: Install .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
cache: true | |
cache-dependency-path: CollapseLauncher/packages.lock.json | |
# - name: Restore | |
# run: dotnet restore CollapseLauncher --locked-mode | |
# Don't need to do restore explicitly, should be done on Build time | |
- name: Build | |
run: | | |
dotnet publish CollapseLauncher -p:PublishProfile=Publish-PreviewRelease -p:PublishDir=".\preview-build\" | |
- name: Upload Artifact (Release) | |
uses: actions/upload-artifact@v4.3.1 | |
if: ${{ matrix.configuration == 'Release' }} | |
with: | |
name: collapse_${{ matrix.platform }}-${{ matrix.configuration }}_${{ matrix.framework }}_${{ github.sha }} | |
path: ./CollapseLauncher/preview-build/ | |
compression-level: 9 | |
- name: Notify Discord | |
uses: sarisia/actions-status-discord@v1.13.0 | |
if: always() | |
continue-on-error: true | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK_NIGHTLY }} | |
title: Collapse Launcher CI build is complete! | |
status: ${{ job.status }} | |
description: | | |
Commit `${{ github.sha }}` by ${{ github.actor }} | |
Click [here](https://nightly.link/CollapseLauncher/Collapse/actions/runs/${{ github.run_id }}) to download! |