-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from microsoft/master
Create new release including "alpha" Linux support
- Loading branch information
Showing
105 changed files
with
5,508 additions
and
2,605 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
steps: | ||
- task: UseDotNet@2 | ||
displayName: Use .NET Core SDK 3.1.x | ||
inputs: | ||
packageType: sdk | ||
version: 3.1.x | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Compile common code | ||
inputs: | ||
command: build | ||
projects: 'Git-Credential-Manager.sln' | ||
arguments: '--configuration=Linux$(configuration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Run common unit tests | ||
inputs: | ||
command: test | ||
projects: 'Git-Credential-Manager.sln' | ||
arguments: '--configuration=Linux$(configuration)' | ||
publishTestResults: true | ||
testRunTitle: 'Unit tests (Linux)' |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
steps: | ||
- script: | | ||
mkdir -p "$(Build.StagingDirectory)/publish/" | ||
cp "out/linux/Packaging.Linux/tar/$(configuration)/"*.tar.gz "$(Build.StagingDirectory)/publish/" | ||
cp "out/linux/Packaging.Linux/deb/$(configuration)/"*.deb "$(Build.StagingDirectory)/publish/" | ||
displayName: Prepare final build artifacts | ||
- task: PublishPipelineArtifact@0 | ||
displayName: Publish unsigned installer artifacts | ||
inputs: | ||
artifactName: 'Installer.Linux.Unsigned' | ||
targetPath: '$(Build.StagingDirectory)/publish' |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build-Installers | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
linux: | ||
name: "Linux" | ||
|
||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works. | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.302 | ||
|
||
- name: Install dependencies | ||
run: dotnet restore --force | ||
|
||
- name: Build Linux Payloads | ||
run: dotnet build -c Release src/linux/Packaging.Linux/Packaging.Linux.csproj | ||
|
||
- name: Upload Installers | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Installers | ||
path: | | ||
out/linux/Packaging.Linux/deb/Release/*.deb | ||
out/linux/Packaging.Linux/tar/Release/*.tar.gz |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: GCM-Core | ||
|
||
on: | ||
push: | ||
branches: [ master, linux ] | ||
pull_request: | ||
branches: [ master, linux ] | ||
|
||
jobs: | ||
validate_gcm: | ||
name: "CI" | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, windows-2019, macos-10.15] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works. | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.302 | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: Build Windows | ||
if: contains(matrix.os, 'windows') | ||
run: dotnet build --configuration WindowsRelease | ||
|
||
- name: Build Linux | ||
if: contains(matrix.os, 'ubuntu') | ||
run: dotnet build --configuration LinuxRelease | ||
|
||
- name: Build macOS | ||
if: contains(matrix.os, 'macos') | ||
run: dotnet build --configuration MacRelease | ||
|
||
- name: Test | ||
run: dotnet test --no-restore --verbosity normal |
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,40 +1,18 @@ | ||
name: "release-homebrew" | ||
on: | ||
release: | ||
types: [published] | ||
types: [released] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get macOS package version | ||
uses: actions/github-script@0.3.0 | ||
id: version | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
result-encoding: string | ||
script: | | ||
const { data: releases } = await github.repos.listReleases({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}); | ||
const release = releases.find(x => x.tag_name === process.env.GITHUB_REF); | ||
if (!release) { | ||
throw new Error(`unable to find release with tag '${process.env.GITHUB_REF}'`); | ||
} | ||
const regex = /gcmcore-osx-(.*)\.pkg/; | ||
const asset = release.assets.find(x => regex.test(x.name)); | ||
if (!asset) { | ||
throw new Error(`unable to find asset matching '${regex}'`); | ||
} | ||
const matches = asset.name.match(regex); | ||
const version = matches[1]; | ||
return version; | ||
- name: Update Homebrew tap | ||
uses: mjcheetham/update-homebrew@v1 | ||
uses: mjcheetham/update-homebrew@v1.1 | ||
with: | ||
token: ${{ secrets.HOMEBREW_TOKEN }} | ||
tap: microsoft/git | ||
name: git-credential-manager-core | ||
type: cask | ||
version: ${{ steps.version.outputs.result }} | ||
releaseAsset: gcmcore-osx-(.*)\.pkg | ||
alwaysUsePullRequest: true |
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.