forked from microsoft/vscode
-
Couldn't load subscription status.
- Fork 184
windows packaging 2 #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Himanshu-Singh-Chauhan
wants to merge
6
commits into
main
Choose a base branch
from
windows-packaging-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+649
−0
Open
windows packaging 2 #260
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
64870e6
whatever i had
Himanshu-Singh-Chauhan ed9ddba
fixes
Himanshu-Singh-Chauhan 68cc346
remove inno for now
Himanshu-Singh-Chauhan 49b4895
fix
Himanshu-Singh-Chauhan 91712e2
old win package workflow
Himanshu-Singh-Chauhan d6aa3d2
remove stupid stuff
Himanshu-Singh-Chauhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,143 @@ | ||
| name: Build Package Download Win x64 | ||
|
|
||
| # Manual trigger | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| pearapp-commit-hash: | ||
| description: 'PearApp commit hash to build (optional)' | ||
| required: false | ||
| submodule-commit-hash: | ||
| description: 'Submodule commit hash to build (optional)' | ||
| required: false | ||
| roo-code-hash: | ||
| description: 'Roo code commit hash to build (optional)' | ||
| required: false | ||
| # for testing | ||
| # on: | ||
| # push: | ||
| # branches: | ||
| # - him/build-package-windows | ||
|
|
||
| jobs: | ||
| windows: | ||
| name: Build VSCode for Windows x64 | ||
| runs-on: windows-2022 | ||
| timeout-minutes: 120 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| steps: | ||
| # Checkout the repository | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 10 | ||
| submodules: recursive | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # # initialize and fetch submodules with a shallow clone of 10 commits | ||
| # - name: Initialize and Update Submodules (Shallow) | ||
| # run: | | ||
| # ls | ||
| # git submodule status | ||
| # ls ./extensions/ | ||
| # cd ./extensions/pearai-submodule | ||
|
|
||
| # Setup Python environment | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.x" | ||
| # Setup Node.js environment | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version-file: .nvmrc | ||
|
|
||
| # - name: Cache node modules | ||
| # id: cache-node-modules | ||
| # uses: actions/cache@v4 | ||
| # with: | ||
| # path: '**/node_modules' | ||
| # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
| # restore-keys: | | ||
| # ${{ runner.os }}-node- | ||
|
|
||
| # - name: Cache Yarn dependencies | ||
| # uses: actions/cache@v4 | ||
| # with: | ||
| # path: '**/node_modules' | ||
| # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
| # restore-keys: | | ||
| # ${{ runner.os }}-yarn- | ||
|
|
||
| - name: Setup Environment | ||
| run: | | ||
| .\scripts\pearai\setup-environment.ps1 | ||
|
|
||
| # # Step 2: Set Build Path | ||
| # - name: Set Build Path | ||
| # id: set-path | ||
| # run: | | ||
| # $username = [Environment]::UserName | ||
| # $buildOutput = "C:\Users\$username\Desktop\vscode-win32-x64" | ||
| # echo "build_path=$buildOutput" >> $env:GITHUB_OUTPUT | ||
|
|
||
| # # Step 3: Cache the build output | ||
| # # sdf | ||
| # - name: Cache Build Output | ||
| # id: cache-restore | ||
| # uses: actions/cache@v4 | ||
| # with: | ||
| # path: ${{ steps.set-path.outputs.build_path }} | ||
| # key: vscode-win-x64-build | ||
| # restore-keys: | | ||
| # vscode-win-x64-build | ||
| # # key: vscode-win-x64-${{ github.sha }} | ||
| # # restore-keys: | | ||
| # # vscode-win-x64-${{ github.sha }} | ||
|
|
||
| # $buildCacheHit = ${{ steps.cache-restore.outputs.cache-hit }} | ||
| # Step 5: Create a dummy folder and a temporary text file (if cache miss) | ||
| - name: Create Dummy Folder for Testing | ||
| run: | | ||
| $pearappCommitHash = '${{ inputs.pearapp-commit-hash }}' | ||
| $submoduleCommitHash = '${{ inputs.submodule-commit-hash }}' | ||
| Write-Host "pearappCommitHash: $pearappCommitHash" | ||
| Write-Host "submoduleCommitHash: $submoduleCommitHash" | ||
|
|
||
|
|
||
|
|
||
| .\.github\workflows\testenv.ps1 ` | ||
| -IS_GITHUB_ACTION $true ` | ||
| -Input_PearappCommitHash $pearappCommitHash ` | ||
| -Input_SubmoduleCommitHash $submoduleCommitHash | ||
|
|
||
| # Step 6: Verify Build Output and Set Output Variable | ||
| - name: Verify Build Output | ||
| id: verify-output | ||
| run: | | ||
| $username = [Environment]::UserName # Get the current user's name | ||
| $buildOutput = "C:\Users\$username\Desktop\vscode-win32-x64" | ||
| if (-Not (Test-Path $buildOutput)) { | ||
| Write-Error "Build output not found at $buildOutput" | ||
| exit 1 # Exit with an error to stop the job | ||
| } else { | ||
| Write-Host "Build output found at $buildOutput" | ||
| echo "build_path=$buildOutput" >> $env:GITHUB_OUTPUT # Set the output variable | ||
| } | ||
|
|
||
| # Step 7: Upload the Build Output (Zipped) | ||
| - name: Upload Build Output | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: vscode-win32-x64 | ||
| path: ${{ steps.verify-output.outputs.build_path }} | ||
|
|
||
| # Optional: Debug step to verify file | ||
| - name: Debug - Check File Existence | ||
| run: | | ||
| $filepath = "${{ steps.verify-output.outputs.build_path }}\temp.txt" | ||
| if (Test-Path $filepath) { | ||
| Write-Host "File exists at: $filepath" | ||
| } else { | ||
| Write-Host "File not found at: $filepath" | ||
| } | ||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new input
roo-code-hashis defined but not used in the subsequent steps. Consider passing it to the script or removing it if not needed.