/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/build-shared.yml
96 строк
3 KB
dependabot[bot]
meta: bump cachix/install-nix-action from 31.10.6 to 31.11.0
03 авг 2026, 21:59
Не верифицирован
03 авг 2026, 21:59
b30628c
Код
Авторство
О чём код?
name: Build Node.js (shared libraries) on: workflow_call: inputs: runner: description: The runner to use for the job. required: true type: string extra-nix-flags: description: Additional CLI arguments appended to the nix-shell invocation. required: false type: string default: '' with-sccache: description: Whether to enable sccache required: false type: boolean default: false v8-nar: description: An optional name for the NAR archive for V8 that needs to be downloaded required: false type: string default: '' pkcs11-store-test: description: Whether to enable the PKCS#11-backed crypto STORE test required: false type: boolean default: false secrets: CACHIX_AUTH_TOKEN: description: Cachix auth token for nodejs.cachix.org. required: false permissions: {} env: FLAKY_TESTS: keep_retrying jobs: build: runs-on: ${{ inputs.runner }} steps: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: tarballs pattern: '*.tar.gz' merge-multiple: true - 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@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0 with: extra_nix_config: sandbox = true - uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17 with: name: nodejs authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 if: inputs.v8-nar with: name: ${{ inputs.v8-nar }} - name: Configure sccache if: inputs.with-sccache uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: script: | core.exportVariable('SCCACHE_GHA_ENABLED', 'on'); core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on'); core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); core.exportVariable('NIX_SCCACHE', '(import <nixpkgs> {}).sccache'); - name: Build Node.js and run tests shell: bash run: | nix-shell \ -I "nixpkgs=$TAR_DIR/tools/nix/pkgs.nix" \ --pure --keep TAR_DIR --keep FLAKY_TESTS \ --keep SCCACHE_GHA_ENABLED --keep ACTIONS_CACHE_SERVICE_V2 --keep ACTIONS_RESULTS_URL --keep ACTIONS_RUNTIME_TOKEN \ --arg loadJSBuiltinsDynamically false \ --arg ccache "${NIX_SCCACHE:-null}" \ --arg devTools '[]' \ --arg benchmarkTools '[]' \ --arg pkcs11 ${{ inputs.pkcs11-store-test }} \ ${{ inputs.extra-nix-flags }} \ --run ' make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9 --skip-tests=$CI_SKIP_TESTS" ' "$TAR_DIR/shell.nix"