Skip to content

Commit 912d1ca

Browse files
committed
Try to copy extension binaries for testing
1 parent 912848e commit 912d1ca

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/job-compile-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323

24+
- name: Copy Published Extension Binaries
25+
if: ${{ inputs.platform != 'windows' }}
26+
uses: .github/workflows/template-copy-published-binaries.yml
27+
2428
- name: Use Node.js 22
2529
uses: actions/setup-node@v4
2630
with:
@@ -42,11 +46,7 @@ jobs:
4246
run: yarn test
4347
working-directory: Extension
4448

45-
# These tests don't require the binary.
46-
# On Linux, it is failing (before the tests actually run) with: Test run terminated with signal SIGSEGV.
47-
# But it works on Linux during the E2E test.
4849
- name: Run SingleRootProject tests
49-
if: ${{ inputs.platform != 'linux' }}
5050
run: yarn test --scenario=SingleRootProject --skipCheckBinaries
5151
working-directory: Extension
5252

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Copy Published Binaries Template
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Install latest version of the C++ extension
7+
run: |
8+
code --install-extension ms-vscode.cpptools --force --pre-release
9+
10+
- name: Copy binaries from the C++ extension
11+
run: |
12+
cp -r ~/.vscode/extensions/ms-vscode.cpptools-1.*/bin/* bin
13+
working-directory: Extension
14+
shell: bash
15+
16+
- name: Uninstall the C++ extension
17+
run: |
18+
code --uninstall-extension ms-vscode.cpptools

0 commit comments

Comments
 (0)