-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
138 changed files
with
11,692 additions
and
11,738 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,16 @@ name: snapx | |
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
- '**' | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
env: | ||
GITVERSION_VERSION: 5.6.6 | ||
GITVERSION_VERSION: 5.7.0 | ||
MSVS_TOOLSET_VERSION: 16 | ||
DOTNET_FRAMEWORK_VERSION: net5.0 | ||
DOTNET_SDK_VERSION: 5.0.200 | ||
SNAPX_DOTNET_FRAMEWORK_VERSION: net6.0 | ||
DOTNET_NET60_VERSION: 6.0.100 | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_NOLOGO: 1 | ||
|
@@ -29,9 +28,13 @@ jobs: | |
SNAPX_VERSION: ${{ steps.set-version.outputs.SNAPX_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Add dotnet tools to environment path | ||
shell: pwsh | ||
run: echo "${HOME}/.dotnet/tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
|
||
- id: set-version | ||
name: Setup GitVersion and set build version | ||
|
@@ -54,7 +57,7 @@ jobs: | |
SNAPX_VERSION: ${{ needs.setup.outputs.SNAPX_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
lfs: true | ||
submodules: true | ||
|
@@ -66,23 +69,28 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup .NET 6.0 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: ${{ env.DOTNET_NET60_VERSION }} | ||
|
||
- name: Build native | ||
shell: pwsh | ||
run: ./build.ps1 Bootstrap-Unix -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
run: ./build.ps1 Bootstrap-Unix -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
- name: Test native | ||
if: matrix.rid != 'linux-arm64' | ||
shell: pwsh | ||
run: ./build.ps1 Run-Native-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
run: ./build.ps1 Run-Native-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
- name: Test .NET | ||
if: matrix.rid != 'linux-arm64' | ||
shell: pwsh | ||
run: ./build.ps1 Run-Dotnet-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
run: ./build.ps1 Run-Dotnet-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
- name: Collect artifacts | ||
env: | ||
SNAPX_UNIX_SETUP_ZIP_REL_DIR: build/dotnet/${{ matrix.rid }}/Snap.Installer/${{ env.DOTNET_FRAMEWORK_VERSION }}/${{ matrix.configuration }}/publish | ||
SNAPX_UNIX_SETUP_ZIP_REL_DIR: build/dotnet/${{ matrix.rid }}/Snap.Installer/${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }}/${{ matrix.configuration }}/publish | ||
SNAPX_UNIX_CORERUN_REL_DIR: build/native/Unix/${{ matrix.rid }}/${{ matrix.configuration }}/Snap.CoreRun | ||
SNAPX_UNIX_CORERUN_TESTS_REL_DIR: build/native/Unix/${{ matrix.rid }}/${{ matrix.configuration }}/Snap.CoreRun.Tests | ||
SNAPX_UNIX_PAL_REL_DIR: build/native/Unix/${{ matrix.rid }}/${{ matrix.configuration }}/Snap.CoreRun.Pal | ||
|
@@ -122,30 +130,30 @@ jobs: | |
SNAPX_VERSION: ${{ needs.setup.outputs.SNAPX_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
lfs: true | ||
submodules: true | ||
- name: Setup dotnet ${{ env.DOTNET_SDK_VERSION }} | ||
uses: actions/setup-dotnet@v1.7.2 | ||
|
||
- name: Setup .NET 6.0 | ||
uses: actions/setup-dotnet@v1.8.2 | ||
with: | ||
dotnet-version: '${{ env.DOTNET_SDK_VERSION }}' | ||
dotnet-version: ${{ env.DOTNET_NET60_VERSION }} | ||
|
||
- name: Build native | ||
run: ./build.ps1 Bootstrap-Windows -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
run: ./build.ps1 Bootstrap-Windows -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
- name: Test native | ||
shell: pwsh | ||
run: ./build.ps1 Run-Native-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
run: ./build.ps1 Run-Native-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
- name: Test .NET | ||
shell: pwsh | ||
run: ./build.ps1 Run-Dotnet-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
run: ./build.ps1 Run-Dotnet-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
- name: Collect artifacts | ||
env: | ||
SNAPX_WINDOWS_SETUP_ZIP_REL_DIR: build/dotnet/${{ matrix.rid }}/Snap.Installer/${{ env.DOTNET_FRAMEWORK_VERSION }}/${{ matrix.configuration }}/publish | ||
SNAPX_WINDOWS_SETUP_ZIP_REL_DIR: build/dotnet/${{ matrix.rid }}/Snap.Installer/${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }}/${{ matrix.configuration }}/publish | ||
SNAPX_WINDOWS_CORERUN_REL_DIR: build/native/Windows/${{ matrix.rid }}/${{ matrix.configuration }}/Snap.CoreRun/${{ matrix.configuration }} | ||
SNAPX_WINDOWS_PAL_REL_DIR: build/native/Windows/${{ matrix.rid }}/${{ matrix.configuration }}/Snap.CoreRun.Pal/${{ matrix.configuration }} | ||
run: | | ||
|
@@ -181,7 +189,7 @@ jobs: | |
# SNAPX_VERSION: ${{ needs.setup.outputs.SNAPX_VERSION }} | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2.3.4 | ||
# uses: actions/checkout@v2.4.0 | ||
# with: | ||
# fetch-depth: 0 | ||
# | ||
|
@@ -191,10 +199,12 @@ jobs: | |
# name: ubuntu-latest-${{ matrix.rid }}-${{ matrix.configuration }} | ||
# path: ${{ github.workspace }} | ||
# | ||
# - name: Setup dotnet ${{ env.DOTNET_SDK_VERSION }} | ||
# uses: actions/[email protected] | ||
|
||
# - name: Setup .NET 6.0 | ||
# uses: actions/[email protected] | ||
# with: | ||
# dotnet-version: '${{ env.DOTNET_SDK_VERSION }}' | ||
# dotnet-version: ${{ env.DOTNET_NET60_VERSION }} | ||
|
||
# | ||
# - name: Test native | ||
# run: | | ||
|
@@ -203,7 +213,7 @@ jobs: | |
# | ||
# - name: Test .NET | ||
# shell: pwsh | ||
# run: ./build.ps1 Run-Dotnet-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
# run: ./build.ps1 Run-Dotnet-UnitTests -Version ${{ env.SNAPX_VERSION }} -Configuration ${{ matrix.configuration }} -CIBuild -NetCoreAppVersion ${{ env.SNAPX_DOTNET_FRAMEWORK_VERSION }} -Rid ${{ matrix.rid }} | ||
|
||
publish: | ||
if: success() && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') | ||
|
@@ -214,7 +224,7 @@ jobs: | |
SNAPX_VERSION: ${{ needs.setup.outputs.SNAPX_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
lfs: true | ||
|
||
|
@@ -242,11 +252,15 @@ jobs: | |
name: windows-latest-win-x64-Release | ||
path: ${{ github.workspace }} | ||
|
||
- name: Setup dotnet ${{ env.DOTNET_SDK_VERSION }} | ||
uses: actions/setup-dotnet@v1.7.2 | ||
- name: Setup .NET 6.0 | ||
uses: actions/setup-dotnet@v1.8.2 | ||
with: | ||
dotnet-version: '${{ env.DOTNET_SDK_VERSION }}' | ||
|
||
dotnet-version: ${{ env.DOTNET_NET60_VERSION }} | ||
|
||
- name: Add dotnet tools to environment path | ||
shell: pwsh | ||
run: echo "${HOME}/.dotnet/tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
|
||
- name: Build nupkgs | ||
shell: pwsh | ||
run: ./build.ps1 -Target Snapx -CIBuild -Version ${{ env.SNAPX_VERSION }} -Configuration Release | ||
|
@@ -266,7 +280,7 @@ jobs: | |
- name: Create github release tag | ||
if: github.ref == 'refs/heads/master' | ||
uses: actions/create-release@v1 | ||
uses: actions/create-release@v1.1.4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dotnet build -c Debug src/Snapx/Snapx.csproj | ||
dotnet src/Snapx/bin/Debug/net5.0/Snapx.dll %* | ||
dotnet src/Snapx/bin/Debug/net6.0/Snapx.dll %* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
dotnet build -c Debug src/Snapx/Snapx.csproj | ||
dotnet src/Snapx/bin/Debug/net5.0/snapx.dll $* | ||
dotnet src/Snapx/bin/Debug/net6.0/snapx.dll $* |
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
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
Oops, something went wrong.