|
65 | 65 | - name: Restore verified third-party downloads |
66 | 66 | uses: actions/cache@v4 |
67 | 67 | with: |
68 | | - path: | |
69 | | - .artifacts/jdtls-downloads |
70 | | - .artifacts/jdk-downloads |
| 68 | + path: .artifacts/jdtls-downloads |
71 | 69 | key: third-party-${{ hashFiles('third_party/*/manifest.json') }} |
72 | 70 | - name: Build, verify and archive both architectures |
73 | 71 | run: | |
|
76 | 74 | package=$(scripts/build-package.sh --arch "$arch") |
77 | 75 | scripts/archive-package.sh --package "$package" --arch "$arch" |
78 | 76 | done |
79 | | - - name: Verify native compiler settings and JARs with JDT |
| 77 | + # The package ships no JDK; the integration tests run the tested JDT LS |
| 78 | + # release on this one, as a user's JDK 21+ would. |
| 79 | + - uses: actions/setup-java@v4 |
| 80 | + with: |
| 81 | + distribution: temurin |
| 82 | + java-version: "21" |
| 83 | + - name: Verify native compiler settings and JARs with the user's JDT LS |
80 | 84 | run: | |
81 | 85 | package=".artifacts/package/$(uname -m)/io.github.lithe-idea.java-support" |
82 | 86 | node scripts/compiler/test-live.mjs "$package" |
@@ -118,18 +122,22 @@ jobs: |
118 | 122 | node-version: 22 |
119 | 123 | - name: Install packaging tools |
120 | 124 | run: sudo apt-get update && sudo apt-get install -y zsh zip unzip |
| 125 | + # The package ships no JDK; the integration tests run the tested JDT LS |
| 126 | + # release on this one, as a user's JDK 21+ would. |
| 127 | + - uses: actions/setup-java@v4 |
| 128 | + with: |
| 129 | + distribution: temurin |
| 130 | + java-version: "21" |
121 | 131 | - name: Restore checksum-verified downloads |
122 | 132 | uses: actions/cache@v4 |
123 | 133 | with: |
124 | | - path: | |
125 | | - .artifacts/jdtls-downloads |
126 | | - .artifacts/jdk-downloads |
| 134 | + path: .artifacts/jdtls-downloads |
127 | 135 | key: linux-${{ matrix.arch }}-${{ hashFiles('third_party/*/manifest.json') }} |
128 | 136 | - name: Test the native backend |
129 | 137 | run: cargo test --workspace --locked |
130 | 138 | - name: Build and verify the archive |
131 | 139 | run: node scripts/package/build-linux.mjs "${{ matrix.arch }}" |
132 | | - - name: Start the packaged backend and language server |
| 140 | + - name: Start the packaged backend and the user's language server |
133 | 141 | run: node scripts/package/smoke-linux.mjs dist/*-linux-${{ matrix.arch }}.zip |
134 | 142 | - uses: actions/upload-artifact@v4 |
135 | 143 | with: |
|
0 commit comments