-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/VSCodium/vscodium into fi…
…x-arm64-build
- Loading branch information
Showing
8 changed files
with
119 additions
and
11 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
vscode | ||
VS*/* |
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,65 @@ | ||
# Node.js with Grunt | ||
# Build a Node.js project using the Grunt task runner. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
||
pool: | ||
vmImage: 'vs2017-win2016' | ||
|
||
steps: | ||
- script: | | ||
choco install jq | ||
displayName: 'install jq from choco' | ||
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2 | ||
displayName: 'Install Yarn' | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 2.x' | ||
inputs: | ||
versionSpec: 2.x | ||
- task: ShellScript@2 | ||
displayName: 'get VSCode sources' | ||
inputs: | ||
scriptPath: get_repo.sh | ||
#args: '' # Optional | ||
#disableAutoCwd: false # Optional | ||
#cwd: '' # Optional | ||
#failOnStandardError: false | ||
- powershell: | | ||
$LATEST_MS_TAG="$(git -C vscode describe --tags)" | ||
Write-Host "##vso[task.setvariable variable=LATEST_MS_TAG]$LATEST_MS_TAG" | ||
displayName: 'set env LATEST_MS_TAG' | ||
- task: PowerShell@2 | ||
inputs: | ||
filePath: 'check_tags.ps1' | ||
env: | ||
GITHUB_TOKEN: $(GITHUB_TOKEN) | ||
- script: | | ||
git -C vscode status | ||
displayName: 'vscode status' | ||
- powershell: | | ||
bash ./build.sh | ||
displayName: 'go build it!' | ||
- bash: | | ||
mv vscode\\.build\\win32-x64\\system-setup\\VSCodeSetup.exe VSCodiumSetup-x64-${LATEST_MS_TAG}.exe | ||
displayName: 'move the system setup' | ||
- bash: | | ||
mv vscode\\.build\\win32-x64\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-x64-${LATEST_MS_TAG}.exe | ||
displayName: 'move the user setup' | ||
- bash: | | ||
mv vscode\\.build\\win32-x64\\archive\\VSCode-win32-x64.zip VSCodium-win32-x64-${LATEST_MS_TAG}.zip | ||
displayName: 'move the zip folder' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish artifacts: system-setup' | ||
inputs: | ||
PathtoPublish: 'VSCodiumSetup-x64-$(LATEST_MS_TAG).exe' | ||
ArtifactName: 'system_setup' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish artifacts: user-setup' | ||
inputs: | ||
PathtoPublish: 'VSCodiumUserSetup-x64-$(LATEST_MS_TAG).exe' | ||
ArtifactName: 'user_setup' | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish artifacts: archive' | ||
inputs: | ||
PathtoPublish: 'VSCodium-win32-x64-$(LATEST_MS_TAG).zip' | ||
ArtifactName: 'archive' |
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,32 @@ | ||
echo "token: $env:GITHUB_TOKEN" | ||
echo "tag: $env:LATEST_MS_TAG" | ||
$GITHUB_RESPONSE = curl.exe -s -H "Authorization: token $env:GITHUB_TOKEN" "https://api.github.com/repos/vscodium/vscodium/releases/tags/$env:LATEST_MS_TAG" | ||
echo "Github response: ${GITHUB_RESPONSE}" | ||
$VSCODIUM_ASSETS= $GITHUB_RESPONSE | jq '.assets' | ||
echo "VSCodium assets: ${VSCODIUM_ASSETS}" | ||
|
||
# if we just don't have the github token, get out fast | ||
if (!$env:GITHUB_TOKEN) { | ||
return | ||
} | ||
if (!$VSCODIUM_ASSETS) { | ||
echo "Release assets do not exist at all, continuing build" | ||
$SHOULD_BUILD = 'yes' | ||
} | ||
|
||
$WindowsAssets = ($VSCODIUM_ASSETS | ConvertFrom-Json) | Where-Object { $_.name.Contains('exe') } | ||
$SYSTEM_SETUP = $WindowsAssets | Where-Object { $_.name.Contains('Setup') } | ||
$USER_SETUP = $WindowsAssets | Where-Object { $_.name.Contains('User') } | ||
if (!$SYSTEM_SETUP) { | ||
echo "Building on Windows because we have no system-setup.exe"; | ||
$SHOULD_BUILD = 'yes' | ||
} | ||
elseif (!$USER_SETUP) { | ||
echo "Building on Windows because we have no user-setup.exe"; | ||
$SHOULD_BUILD = 'yes' | ||
} | ||
else { | ||
echo "Already have all the Windows builds" | ||
} | ||
|
||
Write-Host "##vso[task.setvariable variable=SHOULD_BUILD]$SHOULD_BUILD" |
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