Skip to content

Commit

Permalink
Merge branch 'main' into recorcd-test
Browse files Browse the repository at this point in the history
  • Loading branch information
khareyash05 authored Sep 19, 2024
2 parents 2c697cf + 9f1fec8 commit 86ef088
Show file tree
Hide file tree
Showing 13 changed files with 346 additions and 406 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux, darwin, win32]
arch: [x64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -18,18 +22,49 @@ jobs:
with:
node-version: '18'

# Install npm dependencies based on the architecture
- name: Install dependencies
run: npm install
run: |
if [ "${{ matrix.arch }}" == "arm64" ]; then
npm_config_arch=arm64 npm install --build-from-source
else
npm_config_arch=x64 npm install --build-from-source
fi
- name: Run Rollup
- name: Run Rollup for Compilation
run: npm run rollupci

- name: List contents of out/compiled directory (for debugging)
- name: List Compiled Files (Debugging)
run: ls -R out/compiled


- name: Install vsce
run: npm install -g @vscode/vsce

- name: Package VSIX for Target Platform
run: |
case "${{ matrix.os }}" in
linux) vsce package --target linux-${{ matrix.arch }} ;;
darwin) vsce package --target darwin-${{ matrix.arch }} ;;
win32) vsce package --target win32-${{ matrix.arch }} ;;
esac
- name: Capture VSIX Filename
id: capture_vsix_file
run: |
VSIX_FILE=$(ls *.vsix)
echo "VSIX_FILE=$VSIX_FILE" >> $GITHUB_ENV
shell: bash

- name: Print VSIX Filename
id: print_vsix_file
run: |
echo "Generated package for OS ${{ matrix.os }} and architecture ${{ matrix.arch }}:"
ls *.vsix
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
packagePath: ${{ env.VSIX_FILE }}
registryUrl: https://marketplace.visualstudio.com
skipDuplicate: true
skipDuplicate: true
63 changes: 63 additions & 0 deletions .github/workflows/testarch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Nodejs Build Test

on:
pull_request:
branches:
- main

jobs:
package:
name: Package
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux, darwin, win32] # Define the platforms
arch: [x64, arm64] # Define the architectures
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

# Install npm dependencies based on the architecture
- name: Install dependencies
run: |
if [ "${{ matrix.arch }}" == "arm64" ]; then
npm_config_arch=arm64 npm install --build-from-source
else
npm_config_arch=x64 npm install --build-from-source
fi
# Run Rollup for compilation
- name: Run Rollup
run: npm run rollupci

- name: List contents of out/compiled directory (for debugging)
run: ls -R out/compiled

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Package VSIX for the target platform
run: |
case "${{ matrix.os }}" in
linux) vsce package --target linux-${{ matrix.arch }} ;;
darwin) vsce package --target darwin-${{ matrix.arch }} ;;
win32) vsce package --target win32-${{ matrix.arch }} ;;
esac
- name: Capture VSIX filename
id: capture_vsix_file
run: |
VSIX_FILE=$(ls *.vsix)
echo "VSIX_FILE=$VSIX_FILE" >> $GITHUB_ENV
shell: bash

- name: Print VSIX filename
id: print_vsix_file # Renamed to be unique
run: |
echo "Generated package for platform ${{ matrix.os }} and architecture ${{ matrix.arch }}:"
ls *.vsix
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,20 @@ First Release for Vs Code Extension.

## [1.0.10]

- Resolved sign-up bug for cross browser callbacks.
- Resolved sign-up bug for cross browser callbacks.

## [1.0.11]

- Maintaining user session

## [1.0.12]

- Fixing wrong file test generation in express mongoose

## [1.0.13]

- Separate release for arm and amd user

## [1.0.14]

- Back button refactored for better User Experience
Loading

0 comments on commit 86ef088

Please sign in to comment.