From 350ef8c6262eba1468f8431d9fb6f7aad267a1cf Mon Sep 17 00:00:00 2001 From: Archi Date: Tue, 10 Aug 2021 16:04:06 +0200 Subject: [PATCH] CI: Remove appveyor --- .github/appveyor.yml | 309 ------------------------------------------- README.md | 1 - 2 files changed, 310 deletions(-) delete mode 100644 .github/appveyor.yml diff --git a/.github/appveyor.yml b/.github/appveyor.yml deleted file mode 100644 index 28d985e07..000000000 --- a/.github/appveyor.yml +++ /dev/null @@ -1,309 +0,0 @@ -version: '{build}-{branch}' -pull_requests: - do_not_increment_build_number: true -skip_branch_with_pr: true -image: Visual Studio 2019 -configuration: Release -clone_depth: 10 -environment: - ASF_PRIVATE_SNK: - secure: ZsW32YzXj93ectSLDlAVGfxDr0FssqWbf2IF+L2TU+eVUJmyomAzolpA0zN672yN+YAfqag/PMpSVilB/uu7LfjgQIBLht0rweqqHxBXpd7sJEswnGHozukG/KkW9NygRJbPk1yUGymoQJe5YBb7mwefscp4hW+PB+LuwAi/iNeoWhRfZkouCES3Ms9rDdLexZDoNnHy2Pzqs8iFhF2Ujp0Yww39soSFLR/iteXIrLaWkoeU2hp7mWr6RDZnUGSNDCnSq9bt4QwNMFpzTzlXh84qjLvZ+VKTEioKhd/u/Ov58r/GZ162YLdz7X93iSptIJTHPU6DJ7ofQmnD0HKUYpZlC+rUaZJcX3eMa42EBS0AyD7/+tZq6HsCrqtMBXHjFexQAoSXDv75zBK21+1lrZc/Q8WoLjpYWqqFmKEcQ6n/hRctCDA5wYkaSb0Z69uMYuVGxA0ui7bQWOOU6ePfgzkoBshzuR5FtChCxxdNxk3mr+yXKHvnHYLf03ctPUXKLuKjMX6eFPw20P+kM64ukFDtl6WNzLnRhEm3tOckEAI84Yy312IwMqvbjtLv3ZLVAMeUCjSfW/siRTrwx8LcsZnkxK7h5EJv6pO+rQD+fjWo0PE76cekqFJD3wamDkbjNFSnbq3yic+V2pq6Mo8+iTLQDKEAXtGEVcuROaRgFRPEXx4IZ9yD53/gcHwXDh5wT0bd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wMs3Me1s5sStvqUWdlsYXrLqMgyEKcoOOD4i1wosAmeUUtqLL3nKIhsxYlq0k7UQi4FPJpFI5Ax6oTBZ6dDRqMM/CdlMvrKQEp2sX53wE6yEXucqXUjH1rVlGoBAXF8eL/yqf2kNQ8HL902F6FqWmwR3VHJmtzGUHHoiKgVHeN3nXxtBxMLvKgGbcACSErp6K4DZLlnHF3HzeHxGhSyRbRmDgU= - DOTNET_CHANNEL: 5.0 - DOTNET_CLI_TELEMETRY_OPTOUT: true - DOTNET_INSTALL_DIR: C:\Program Files\dotnet - DOTNET_NOLOGO: true -# DOTNET_SDK: 5.0.103 - NET_CORE_VERSION: net5.0 - NET_FRAMEWORK_VERSION: net48 - NODE_JS_VERSION: lts - STEAM_TOKEN_DUMPER_NAME: ArchiSteamFarm.OfficialPlugins.SteamTokenDumper - STEAM_TOKEN_DUMPER_TOKEN: - secure: uttQUE9ZK7BIa9SIbDkpUTMx7Slnl3zAPkRNzE465YgwxLdLEwv6yYR5QXCSZolb5Qq23Z/LmZNGd3M6B0+hbx3waWOeW2AiWvfCcnUmuT+3wfLJsgLbf1g4agFS7zsDgeRPfnNMzOxD8etelnA5YOOUMNB3RLw3fIdznNd+Fs6R0Ou3/1UavDuHKkbh1+A5 - VARIANTS: generic generic-netf linux-arm linux-arm64 linux-x64 osx-x64 win-x64 # NOTE: When modifying variants, don't forget to update ASF_VARIANT definitions in SharedInfo.cs! -matrix: - allow_failures: - - image: Visual Studio 2019 Preview - fast_finish: true -install: -- pwsh: >- - Set-StrictMode -Version Latest - - $ErrorActionPreference = 'Stop' - - $ProgressPreference = 'SilentlyContinue' - - - git submodule sync --recursive - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - git submodule update --init --recursive - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - if ($env:DOTNET_CHANNEL) { - dotnet --info - - try { - &([scriptblock]::Create((Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1'))) -Channel "$env:DOTNET_CHANNEL" -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath - } catch [System.Net.WebException],[System.IO.IOException] { - # Not fatal for the remaining part of the script - Write-Host $_ - } - } - - - if ($env:DOTNET_SDK) { - dotnet --info - - try { - &([scriptblock]::Create((Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1'))) -Channel 'Current' -Version "$env:DOTNET_SDK" -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath - } catch [System.Net.WebException],[System.IO.IOException] { - # Not fatal for the remaining part of the script - Write-Host $_ - } - } -- ps: Install-Product node "$env:NODE_JS_VERSION" -before_build: -- pwsh: >- - Set-StrictMode -Version Latest - - $ErrorActionPreference = 'Stop' - - $ProgressPreference = 'SilentlyContinue' - - - dotnet --info - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - node -v - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - npm -v - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } -build_script: -- pwsh: >- - Set-StrictMode -Version Latest - - $ErrorActionPreference = 'Stop' - - $ProgressPreference = 'SilentlyContinue' - - - npm ci --no-progress --prefix ASF-ui - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - npm run-script deploy --no-progress --prefix ASF-ui - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - dotnet build -c "$env:CONFIGURATION" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } -test_script: -- pwsh: >- - Set-StrictMode -Version Latest - - $ErrorActionPreference = 'Stop' - - $ProgressPreference = 'SilentlyContinue' - - - dotnet test ArchiSteamFarm.Tests -c "$env:CONFIGURATION" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } -after_test: -- pwsh: >- - Set-StrictMode -Version Latest - - $ErrorActionPreference = 'Stop' - - $ProgressPreference = 'SilentlyContinue' - - - if ((Test-Path env:ASF_PRIVATE_SNK) -and ($env:ASF_PRIVATE_SNK)) { - echo "$env:ASF_PRIVATE_SNK" > "resources\ArchiSteamFarm.snk" - - certutil -f -decode "resources\ArchiSteamFarm.snk" "resources\ArchiSteamFarm.snk" - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - } - - - if ((Test-Path env:STEAM_TOKEN_DUMPER_TOKEN) -and ($env:STEAM_TOKEN_DUMPER_TOKEN) -and (Test-Path "$env:STEAM_TOKEN_DUMPER_NAME\SharedInfo.cs" -PathType Leaf)) { - (Get-Content "$env:STEAM_TOKEN_DUMPER_NAME\SharedInfo.cs").Replace('STEAM_TOKEN_DUMPER_TOKEN', "$env:STEAM_TOKEN_DUMPER_TOKEN") | Set-Content "$env:STEAM_TOKEN_DUMPER_NAME\SharedInfo.cs" - } - - - dotnet publish "$env:STEAM_TOKEN_DUMPER_NAME" -c "$env:CONFIGURATION" -f "$env:NET_CORE_VERSION" -o "out/$env:STEAM_TOKEN_DUMPER_NAME/$env:NET_CORE_VERSION" -p:ContinuousIntegrationBuild=true -p:TargetLatestRuntimePatch=false -p:UseAppHost=false --nologo - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - dotnet publish "$env:STEAM_TOKEN_DUMPER_NAME" -c "$env:CONFIGURATION" -f "$env:NET_FRAMEWORK_VERSION" -o "out/$env:STEAM_TOKEN_DUMPER_NAME/$env:NET_FRAMEWORK_VERSION" -p:ContinuousIntegrationBuild=true -p:TargetLatestRuntimePatch=false -p:UseAppHost=false --nologo - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - dotnet restore ArchiSteamFarm -p:ContinuousIntegrationBuild=true --nologo - - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - - $PublishBlock = { - param($variant) - - Set-StrictMode -Version Latest - $ErrorActionPreference = 'Stop' - $ProgressPreference = 'SilentlyContinue' - - Set-Location "$env:APPVEYOR_BUILD_FOLDER" - - if ($variant -like '*-netf') { - $targetFramework = $env:NET_FRAMEWORK_VERSION - } else { - $targetFramework = $env:NET_CORE_VERSION - } - - if ($variant -like 'generic*') { - $variantArgs = '-p:TargetLatestRuntimePatch=false', '-p:UseAppHost=false' - } else { - $variantArgs = '-p:PublishSingleFile=true', '-p:PublishTrimmed=true', '-r', "$variant" - } - - dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -f "$targetFramework" -o "out\$variant" "-p:ASFVariant=$variant" -p:ContinuousIntegrationBuild=true --no-restore --nologo $variantArgs - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - # If we're including any overlay for this variant, copy it to output directory - if (Test-Path "ArchiSteamFarm\overlay\$variant" -PathType Container) { - Copy-Item "ArchiSteamFarm\overlay\$variant\*" "out\$variant" -Recurse - } - - # If we're including SteamTokenDumper plugin for this framework, copy it to output directory - if (Test-Path "out\$env:STEAM_TOKEN_DUMPER_NAME\$targetFramework" -PathType Container) { - if (!(Test-Path "out\$variant\plugins\$env:STEAM_TOKEN_DUMPER_NAME" -PathType Container)) { - New-Item -ItemType Directory -Path "out\$variant\plugins\$env:STEAM_TOKEN_DUMPER_NAME" > $null - } - - Copy-Item "out\$env:STEAM_TOKEN_DUMPER_NAME\$targetFramework\*" "out\$variant\plugins\$env:STEAM_TOKEN_DUMPER_NAME" -Recurse - } - - # Icon is available only in .NET Framework and .NET Core Windows build, we'll bundle the .ico file for other flavours - if (($targetFramework -eq "$env:NET_CORE_VERSION") -and !(Test-Path "out\$variant\ArchiSteamFarm.exe" -PathType Leaf)) { - Copy-Item 'resources\ASF.ico' "out\$variant\ArchiSteamFarm.ico" - } - - # By default use fastest compression - $compressionArgs = '-mx=1' - - # Include extra logic for builds marked for release - if ($env:APPVEYOR_REPO_TAG -eq 'true') { - # Update link in Changelog.html accordingly - if (Test-Path "out\$variant\Changelog.html" -PathType Leaf) { - (Get-Content "out\$variant\Changelog.html").Replace('ArchiSteamFarm/commits/main', "ArchiSteamFarm/releases/tag/$env:APPVEYOR_REPO_TAG_NAME") | Set-Content "out\$variant\Changelog.html" - } - } - - 7z a -bd -slp -tzip -mm=Deflate $compressionArgs "out\ASF-$variant.zip" "$env:APPVEYOR_BUILD_FOLDER\out\$variant\*" - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - - # We can aid non-windows users by adding chmod +x flag to appropriate executables directly in the zip file - # This is ALMOST a hack, but works reliably enough - if (Test-Path "tools\zip_exec\zip_exec.exe" -PathType Leaf) { - $executableFiles = @() - - if ($variant -like 'generic*') { - $executableFiles += 'ArchiSteamFarm.sh', 'ArchiSteamFarm-Service.sh' - } elseif (($variant -like 'linux*') -or ($variant -like 'osx*')) { - $executableFiles += 'ArchiSteamFarm', 'ArchiSteamFarm-Service.sh' - } - - foreach ($executableFile in $executableFiles) { - tools\zip_exec\zip_exec.exe "out\ASF-$variant.zip" "$executableFile" - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - } - } - - # TODO: Change me to Push-AppveyorArtifact once https://github.com/appveyor/ci/issues/2183 is fixed - appveyor PushArtifact "out\ASF-$variant.zip" -FileName "ASF-$variant.zip" -DeploymentName "ASF-$variant.zip" - } - - - foreach ($variant in $env:VARIANTS.Split([char[]] $null, [System.StringSplitOptions]::RemoveEmptyEntries)) { - Start-Job -Name "$variant" $PublishBlock -ArgumentList "$variant" - } - - - Get-Job | Receive-Job -Wait -deploy: off -notifications: -- provider: Webhook - url: - secure: i/og7KzkpbcWcKoUubrLH+KB6bkfqA55FHUlGxLepLmgZNQeNMiMoAFICOFY795fFrFfUNUKqwk7ApXE6HUyWMoiijLj7G/JBLTPkBiTCu8fZMTMqwQm6FiHB3+/0h0C+ukcrBEqnXYSQUh6znpKqJSTrIfXUQ7ftNuC966kBAw= - method: POST - body: >- - { - "avatar_url": "https://www.appveyor.com/assets/img/appveyor-logo-256.png", - "username": "AppVeyor", - "content": "[{{projectName}}:{{branch}}] {{commitMessage}} by {{commitAuthor}} ({{commitId}}) | **{{status}}** on {{buildUrl}}" - } - on_build_success: true - on_build_failure: true - on_build_status_changed: false diff --git a/README.md b/README.md index ac567ef21..28fe5218f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # ArchiSteamFarm [![Build status (GitHub)](https://img.shields.io/github/workflow/status/JustArchiNET/ArchiSteamFarm/ASF-ci/main?label=GitHub&logo=github&cacheSeconds=600)](https://github.com/JustArchiNET/ArchiSteamFarm/actions?query=workflow%3AASF-ci+branch%3Amain) -[![Build status (AppVeyor)](https://img.shields.io/appveyor/ci/JustArchi/ArchiSteamFarm/main.svg?label=AppVeyor&logo=appveyor&cacheSeconds=600)](https://ci.appveyor.com/project/JustArchi/ArchiSteamFarm) [![Build status (Docker)](https://img.shields.io/github/workflow/status/JustArchiNET/ArchiSteamFarm/ASF-docker-publish-main.svg?label=Docker&logo=docker&cacheSeconds=600)](https://hub.docker.com/r/justarchi/archisteamfarm) [![Github last commit date](https://img.shields.io/github/last-commit/JustArchiNET/ArchiSteamFarm.svg?label=Updated&logo=github&cacheSeconds=600)](https://github.com/JustArchiNET/ArchiSteamFarm/commits) [![Total downloads](https://img.shields.io/github/downloads/JustArchiNET/ArchiSteamFarm/total.svg?label=Downloads&logo=github&cacheSeconds=600)](https://github.com/JustArchiNET/ArchiSteamFarm/releases)