GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/.github/workflows/test-shared.yml at v26.x · nodejs/node 273 lines (257 loc) · 9.33 KB / Copy pathtest-shared.ymlFile metadata and controls273 lines (257 loc) · 9.33 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 # This action uses the following secrets: # CACHIX_AUTH_TOKEN: Write access to nodejs.cachix.org – without it, the cache is read-only. name: Test Shared libraries on: pull_request: paths-ignore: - '**.md' - eslint.config.mjs - '**/eslint.config_partial.mjs' - android-configure - android-configure.py - android-patches/** - benchmarks/** - codecov.yml - deps/LIEF/** - deps/ada/** - deps/brotli/** - deps/cares/** - deps/corepack/** - deps/crates/** - deps/googletest/** - deps/histogram/** - deps/icu-small/** - deps/icu-tmp/** - deps/libffi/** - deps/llhttp/** - deps/merve/** - deps/nbytes/** - deps/nghttp2/** - deps/ngtcp2/** - deps/openssl/*/** - deps/perfetto/** - deps/simdjson/** - deps/sqlite/** - deps/uv/** - deps/uvwasi/** - deps/v8/third_party/abseil-cpp/** - deps/v8/third_party/highway/** - deps/v8/third_party/simdutf/** - deps/zlib/** - deps/zstd/** - doc/** - pyproject.yml - tsconfig.json - test/internet/** - tools/** - '!tools/gyp/**' - '!tools/nix/**' - '!tools/v8/**' - '!tools/v8_gypfiles/**' - tools/nix/list-requisites.sh - typings/** - vcbuild.bat - .** - '!.github/workflows/test-shared.yml' - '!.github/workflows/build-shared.yml' types: [opened, synchronize, reopened, ready_for_review] push: branches: - main - canary - v[0-9]+.x-staging - v[0-9]+.x paths-ignore: - '**.md' - eslint.config.mjs - '**/eslint.config_partial.mjs' - android-configure - android-configure.py - android-patches/** - benchmarks/** - codecov.yml - deps/LIEF/** - deps/ada/** - deps/brotli/** - deps/cares/** - deps/corepack/** - deps/crates/** - deps/googletest/** - deps/histogram/** - deps/icu-small/** - deps/icu-tmp/** - deps/libffi/** - deps/llhttp/** - deps/merve/** - deps/nbytes/** - deps/nghttp2/** - deps/ngtcp2/** - deps/openssl/*/** - deps/perfetto/** - deps/simdjson/** - deps/sqlite/** - deps/uv/** - deps/uvwasi/** - deps/v8/third_party/abseil-cpp/** - deps/v8/third_party/highway/** - deps/v8/third_party/simdutf/** - deps/zlib/** - deps/zstd/** - doc/** - pyproject.yml - tsconfig.json - test/internet/** - tools/** - '!tools/gyp/**' - '!tools/nix/**' - '!tools/v8/**' - '!tools/v8_gypfiles/**' - tools/nix/list-requisites.sh - typings/** - vcbuild.bat - .** - '!.github/workflows/test-shared.yml' - '!.github/workflows/build-shared.yml' concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true permissions: contents: read jobs: build-tarball: if: github.event.pull_request.draft == false name: ${{ github.event_name == 'workflow_dispatch' && 'Skipped job' || 'Build slim tarball' }} runs-on: ubuntu-slim steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Make tarball run: | export DATESTRING=$(date "+%Y-%m-%d") export COMMIT=$(git rev-parse --short=10 "$GITHUB_SHA") ./configure && make tar -j4 SKIP_XZ=1 SKIP_SHARED_DEPS=1 GZIP_COMPRESSION=6 env: DISTTYPE: nightly - name: Upload tarball artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: path: '*.tar.gz' archive: false build: needs: build-tarball strategy: fail-fast: false matrix: include: - runner: ubuntu-24.04 system: x86_64-linux # Exercise the trace-event code against a perfetto-enabled V8. perfetto: true # built separately in build-aarch64-linux-v8 # - runner: ubuntu-24.04-arm # system: aarch64-linux - runner: macos-15-intel system: x86_64-darwin - runner: macos-latest system: aarch64-darwin name: '${{ matrix.system }}: with shared libraries${{ matrix.perfetto && '' and perfetto'' || '''' }}' uses: $/.github/workflows/build-shared.yml with: runner: ${{ matrix.runner }} with-sccache: ${{ github.base_ref == 'main' || github.ref_name == 'main' }} extra-nix-flags: ${{ matrix.perfetto && '--arg withPerfetto true' || '' }} secrets: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} build-aarch64-linux-v8: needs: build-tarball runs-on: ubuntu-24.04-arm name: 'aarch64-linux: Cache V8 build' outputs: local-cache: ${{ steps.upload.outcome != 'skipped' && 'true' || '' }} matrix: ${{ steps.query.outputs.matrix }} env: HAS_CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN && 'true' }} steps: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: tarballs - name: Extract tarball shell: bash run: | tar xzf tarballs/*.tar.gz -C "$RUNNER_TEMP" echo "TAR_DIR=$RUNNER_TEMP/$(basename tarballs/*.tar.gz .tar.gz)" >> "$GITHUB_ENV" - uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1 with: extra_nix_config: sandbox = true - name: Evaluate V8 derivation, check its cache status id: v8-drv run: | V8_DRV=$( nix-instantiate -E "builtins.filter (p: p.pname == ''v8'') (import $TAR_DIR/tools/nix/ci-shell.nix {}).buildInputs" ) V8_STORE_PATH=$(nix-store -q --outputs "$V8_DRV") echo "V8_DRV=$V8_DRV" >> "$GITHUB_OUTPUT" set -x [ "$(curl -ISsw "%{http_code}" -o /dev/null "https://nodejs.cachix.org/$(basename ${V8_STORE_PATH%-v8-*}).narinfo")" != "200" ] || echo "ALREADY_CACHED=true" >> "$GITHUB_OUTPUT" - uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17 if: ${{ steps.v8-drv.outputs.ALREADY_CACHED != 'true' }} with: name: nodejs authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: Build V8 to cache it if: ${{ steps.v8-drv.outputs.ALREADY_CACHED != 'true' }} run: nix-store --export "$(nix-build "$V8_DRV")" > libv8-aarch64-linux.nar env: V8_DRV: ${{ steps.v8-drv.outputs.V8_DRV }} - name: Upload libv8-aarch64-linux.nar if: ${{ steps.v8-drv.outputs.ALREADY_CACHED != 'true' && env.HAS_CACHIX_AUTH_TOKEN != 'true' }} id: upload uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: libv8-aarch64-linux.nar path: libv8-aarch64-linux.nar - name: Collect matrix of support OpenSSL versions id: query run: | echo "matrix=$( nix-instantiate --eval --strict --json -E " let matrix = import $TAR_DIR/tools/nix/openssl-matrix.nix {}; in builtins.map (attr: { inherit attr; inherit (builtins.getAttr attr matrix) name; }) (builtins.attrNames matrix) " )" >> "$GITHUB_OUTPUT" # Builds and tests Node.js with shared libraries against every supported # OpenSSL release version available in the repo-pinned nixpkgs. The default # shared `openssl` from tools/nix/sharedLibDeps.nix is overridden per matrix # entry, while all other shared libs remain at their defaults. Only runs on # a single runner/system (aarch64-linux) to keep the matrix to a minimum. build-openssl: needs: build-aarch64-linux-v8 strategy: fail-fast: false matrix: openssl: ${{ fromJSON(needs.build-aarch64-linux-v8.outputs.matrix) }} name: 'aarch64-linux: with shared ${{ matrix.openssl.name }}' uses: $/.github/workflows/build-shared.yml with: runner: ubuntu-24.04-arm v8-nar: ${{ needs.build-aarch64-linux-v8.outputs.local-cache && 'libv8-aarch64-linux.nar' }} pkcs11-store-test: ${{ matrix.openssl.attr == 'openssl' }} # Override just the `openssl` attr of the default shared-lib set with # the matrix-selected nixpkgs attribute (e.g. `openssl_3_6`). All # other shared libs (brotli, cares, libuv, …) keep their defaults. # `permittedInsecurePackages` whitelists just the matrix-selected # release (e.g. `openssl-1.1.1w`) so EOL-with-extended-support # cycles evaluate without relaxing nixpkgs' meta check globally. extra-nix-flags: | --arg useSeparateDerivationForV8 ${{ needs.build-aarch64-linux-v8.outputs.local-cache && '"$(nix-store --import < libv8-aarch64-linux.nar)"' || 'true' }} \ --arg sharedLibDeps "(import $TAR_DIR/tools/nix/sharedLibDeps.nix {}) // { openssl = builtins.getAttr \"${{ !contains(matrix.openssl.attr, '$') && !contains(matrix.openssl.attr, '\"') && !contains(matrix.openssl.attr, '\') && !contains(matrix.openssl.attr, '`') && matrix.openssl.attr }}\" (import $TAR_DIR/tools/nix/openssl-matrix.nix {}); }" \ secrets: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |