-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into recorcd-test
- Loading branch information
Showing
13 changed files
with
346 additions
and
406 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
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 |
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.