File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
container :
13
13
image : swift:6.0-jammy
14
+ outputs :
15
+ artifact-url : ${{ steps.archive.outputs.artifact-url }}
14
16
steps :
15
17
- name : Checkout repository
16
18
uses : actions/checkout@v4
@@ -24,15 +26,23 @@ jobs:
24
26
npm ci
25
27
npm run compile
26
28
npm run package
29
+ for file in *.vsix; do
30
+ name="$(basename "$file" .vsix)-${{github.run_number}}.vsix"
31
+ echo "Created bundle $name"
32
+ mv "$file" "$name"
33
+ done
27
34
- name : Archive production artifacts
35
+ id : archive
28
36
uses : actions/upload-artifact@v4
29
37
if : always()
30
38
with :
39
+ if-no-files-found : error
31
40
name : vscode-swift-extension
32
41
path : |
33
42
*.vsix
34
43
tests_release :
35
44
name : Test Release
45
+ needs : package
36
46
uses : swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
37
47
with :
38
48
# Linux
41
51
NODE_PATH=/usr/local/nvm/versions/node/v18.19.0/bin
42
52
NVM_DIR=/usr/local/nvm
43
53
CI=1
54
+ VSCODE_SWIFT_VSIX_URL=${{needs.package.outputs.artifact-url}}
44
55
linux_pre_build_command : . .github/workflows/scripts/setup-linux.sh
45
56
linux_build_command : ./scripts/test.sh
46
57
# Windows
53
64
54
65
tests_insiders :
55
66
name : Test Insiders
67
+ needs : package
56
68
uses : swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
57
69
with :
58
70
# Linux
Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ export NODE_PATH=/usr/local/nvm/versions/node/v18.19.0/bin
18
18
export NVM_DIR=/usr/local/nvm
19
19
20
20
apt-get update && apt-get install -y rsync curl gpg libasound2 libgbm1 libgtk-3-0 libnss3 xvfb build-essential
21
+
22
+ if [ ! -z " $VSCODE_SWIFT_VSIX_URL " ]; then
23
+ export VSCODE_SWIFT_VSIX=" $PWD /vscode-swift.vsix"
24
+ echo " Downloading $VSCODE_SWIFT_VSIX_URL to $VSCODE_SWIFT_VSIX "
25
+ curl -o $VSCODE_SWIFT_VSIX " $VSCODE_SWIFT_VSIX_URL "
26
+ fi
27
+
21
28
mkdir -p $NVM_DIR
22
29
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
23
30
/bin/bash -c " source $NVM_DIR /nvm.sh && nvm install $NODE_VERSION "
You can’t perform that action at this time.
0 commit comments