Skip to content

Commit

Permalink
Merge pull request #36 from max-ieremenko/release/4.2.0
Browse files Browse the repository at this point in the history
Release/4.2.0
  • Loading branch information
max-ieremenko committed Nov 12, 2023
2 parents 00959dc + 2f197e2 commit 8860e77
Show file tree
Hide file tree
Showing 763 changed files with 7,872 additions and 7,313 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- master
- 'release/**'
paths-ignore:
- '**.md'
pull_request:
branches:
- master
- 'release/**'
paths-ignore:
- '**.md'

jobs:
build:
name: win-build
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
shell: pwsh
run: ./Build/install-dependencies.ps1

- name: Dotnet info
shell: pwsh
run: dotnet --info

- name: Build
shell: pwsh
run: ./Build/build.ps1 -Mode "github" -GithubToken "${{ secrets.GITHUB_TOKEN }}"

- name: Artifacts
uses: actions/upload-artifact@v3
with:
name: packages
path: |
.\bin\artifacts\*.nupkg
.\bin\artifacts\*.zip
if-no-files-found: error
10 changes: 4 additions & 6 deletions Build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
build.ps1 is designed to run on windows

- PowerShell Desktop 5.1
- PowerShell [7.3.0](https://github.com/PowerShell/PowerShell/releases/tag/v7.3.0) for .net 7.0 tests
- PowerShell [7.3.0](https://github.com/PowerShell/PowerShell/releases/tag/v7.3.0) for .net 7.0 and 8.0 tests
- PowerShell [7.2.1](https://github.com/PowerShell/PowerShell/releases/tag/v7.2.1) for .net 6.0 tests
- PowerShell [7.1.5](https://github.com/PowerShell/PowerShell/releases/tag/v7.1.5) for .net 5.0 tests
- PowerShell [7.0.8](https://github.com/PowerShell/PowerShell/releases/tag/v7.0.8) for .net core 3.1 tests
- Install-Module -Name [InvokeBuild](https://www.powershellgallery.com/packages/InvokeBuild/5.9.12) -RequiredVersion 5.9.12
- Install-Module -Name [ThirdPartyLibraries](https://www.powershellgallery.com/packages/ThirdPartyLibraries/3.1.2) -RequiredVersion 3.1.2
- Install-Module -Name [InvokeBuild](https://www.powershellgallery.com/packages/InvokeBuild/5.10.4) -RequiredVersion 5.10.4
- Install-Module -Name [ThirdPartyLibraries](https://www.powershellgallery.com/packages/ThirdPartyLibraries/3.4.1) -RequiredVersion 3.4.1
- .net framework 4.7.2+ sdk
- .net 7.0 sdk
- .net 8.0 sdk
- docker, switched to linux containers

## How to build
Expand Down
185 changes: 0 additions & 185 deletions Build/build-scripts.ps1

This file was deleted.

21 changes: 18 additions & 3 deletions Build/build.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
#Requires -Version "7.0"
#Requires -Modules @{ ModuleName="InvokeBuild"; ModuleVersion="5.9.12" }
#Requires -Modules @{ ModuleName="InvokeBuild"; ModuleVersion="5.10.4" }
#Requires -Modules @{ ModuleName="ThirdPartyLibraries"; ModuleVersion="3.4.1" }

[CmdletBinding()]
param (
[Parameter()]
[ValidateSet("local", "github")]
[string]
$Mode,

[Parameter()]
[string]
$GithubToken
)

Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"

$file = Join-Path $PSScriptRoot "build-tasks.ps1"
Invoke-Build -File $file
$file = Join-Path $PSScriptRoot "tasks/build-tasks.ps1"
$task = ($Mode -eq "github") ? "GithubBuild" : "LocalBuild"

Invoke-Build -File $file -Task $task -GithubToken $GithubToken
114 changes: 0 additions & 114 deletions Build/create-images-tasks.ps1

This file was deleted.

Loading

0 comments on commit 8860e77

Please sign in to comment.