mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 09:57:11 -05:00
chore: move tracing build to build job (#28141)
This commit is contained in:
parent
4ff629bb2a
commit
8d86198c69
2 changed files with 14 additions and 73 deletions
41
.github/workflows/ci.generate.ts
vendored
41
.github/workflows/ci.generate.ts
vendored
|
@ -697,15 +697,17 @@ const ci = {
|
||||||
run:
|
run:
|
||||||
"deno run --allow-write --allow-read --allow-run=git ./tests/node_compat/runner/setup.ts --check",
|
"deno run --allow-write --allow-read --allow-run=git ./tests/node_compat/runner/setup.ts --check",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Check tracing build",
|
||||||
|
if:
|
||||||
|
"matrix.job == 'test' && matrix.profile == 'debug' && matrix.os == 'linux' && matrix.arch == 'x86_64'",
|
||||||
|
run: "cargo check -p deno --features=lsp-tracing ",
|
||||||
|
env: { CARGO_PROFILE_DEV_DEBUG: 0 },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Build debug",
|
name: "Build debug",
|
||||||
if: "matrix.job == 'test' && matrix.profile == 'debug'",
|
if: "matrix.job == 'test' && matrix.profile == 'debug'",
|
||||||
run: [
|
run: "cargo build --locked --all-targets",
|
||||||
// output fs space before and after building
|
|
||||||
"df -h",
|
|
||||||
"cargo build --locked --all-targets",
|
|
||||||
"df -h",
|
|
||||||
].join("\n"),
|
|
||||||
env: { CARGO_PROFILE_DEV_DEBUG: 0 },
|
env: { CARGO_PROFILE_DEV_DEBUG: 0 },
|
||||||
},
|
},
|
||||||
// Uncomment for remote debugging
|
// Uncomment for remote debugging
|
||||||
|
@ -1129,33 +1131,6 @@ const ci = {
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
"check-lsp-tracing": {
|
|
||||||
name: "check lsp tracing",
|
|
||||||
needs: ["pre_build"],
|
|
||||||
if: "${{ needs.pre_build.outputs.skip_build != 'true' }}",
|
|
||||||
"runs-on": ubuntuX86Runner,
|
|
||||||
"timeout-minutes": 30,
|
|
||||||
steps: skipJobsIfPrAndMarkedSkip([
|
|
||||||
...cloneRepoStep,
|
|
||||||
installRustStep,
|
|
||||||
{
|
|
||||||
// Restore cache from the latest 'main' branch build.
|
|
||||||
name: "Restore cache build output (PR)",
|
|
||||||
uses: "actions/cache/restore@v4",
|
|
||||||
if:
|
|
||||||
"github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')",
|
|
||||||
with: {
|
|
||||||
path: prCachePath,
|
|
||||||
key: "never_saved",
|
|
||||||
"restore-keys": prCacheKeyPrefix,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Check",
|
|
||||||
run: "cargo check -p deno --features=lsp-tracing",
|
|
||||||
},
|
|
||||||
]),
|
|
||||||
},
|
|
||||||
"publish-canary": {
|
"publish-canary": {
|
||||||
name: "publish canary",
|
name: "publish canary",
|
||||||
"runs-on": ubuntuX86Runner,
|
"runs-on": ubuntuX86Runner,
|
||||||
|
|
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
|
@ -410,12 +410,14 @@ jobs:
|
||||||
- name: node_compat/setup.ts --check
|
- name: node_compat/setup.ts --check
|
||||||
if: '!(matrix.skip) && (matrix.job == ''lint'' && matrix.os == ''linux'')'
|
if: '!(matrix.skip) && (matrix.job == ''lint'' && matrix.os == ''linux'')'
|
||||||
run: deno run --allow-write --allow-read --allow-run=git ./tests/node_compat/runner/setup.ts --check
|
run: deno run --allow-write --allow-read --allow-run=git ./tests/node_compat/runner/setup.ts --check
|
||||||
|
- name: Check tracing build
|
||||||
|
if: '!(matrix.skip) && (matrix.job == ''test'' && matrix.profile == ''debug'' && matrix.os == ''linux'' && matrix.arch == ''x86_64'')'
|
||||||
|
run: 'cargo check -p deno --features=lsp-tracing '
|
||||||
|
env:
|
||||||
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
- name: Build debug
|
- name: Build debug
|
||||||
if: '!(matrix.skip) && (matrix.job == ''test'' && matrix.profile == ''debug'')'
|
if: '!(matrix.skip) && (matrix.job == ''test'' && matrix.profile == ''debug'')'
|
||||||
run: |-
|
run: cargo build --locked --all-targets
|
||||||
df -h
|
|
||||||
cargo build --locked --all-targets
|
|
||||||
df -h
|
|
||||||
env:
|
env:
|
||||||
CARGO_PROFILE_DEV_DEBUG: 0
|
CARGO_PROFILE_DEV_DEBUG: 0
|
||||||
- name: Build release
|
- name: Build release
|
||||||
|
@ -725,42 +727,6 @@ jobs:
|
||||||
- name: Cargo build
|
- name: Cargo build
|
||||||
run: cargo build --target wasm32-unknown-unknown -p deno_resolver
|
run: cargo build --target wasm32-unknown-unknown -p deno_resolver
|
||||||
if: '!(matrix.skip)'
|
if: '!(matrix.skip)'
|
||||||
check-lsp-tracing:
|
|
||||||
name: check lsp tracing
|
|
||||||
needs:
|
|
||||||
- pre_build
|
|
||||||
if: '${{ needs.pre_build.outputs.skip_build != ''true'' }}'
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
- name: Configure git
|
|
||||||
run: |-
|
|
||||||
git config --global core.symlinks true
|
|
||||||
git config --global fetch.parallel 32
|
|
||||||
if: '!(matrix.skip)'
|
|
||||||
- name: Clone repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 5
|
|
||||||
submodules: false
|
|
||||||
if: '!(matrix.skip)'
|
|
||||||
- uses: dsherret/rust-toolchain-file@v1
|
|
||||||
if: '!(matrix.skip)'
|
|
||||||
- name: Restore cache build output (PR)
|
|
||||||
uses: actions/cache/restore@v4
|
|
||||||
if: '!(matrix.skip) && (github.ref != ''refs/heads/main'' && !startsWith(github.ref, ''refs/tags/''))'
|
|
||||||
with:
|
|
||||||
path: |-
|
|
||||||
./target
|
|
||||||
!./target/*/gn_out
|
|
||||||
!./target/*/gn_root
|
|
||||||
!./target/*/*.zip
|
|
||||||
!./target/*/*.tar.gz
|
|
||||||
key: never_saved
|
|
||||||
restore-keys: '40-cargo-target-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.profile }}-${{ matrix.job }}-'
|
|
||||||
- name: Check
|
|
||||||
run: cargo check -p deno --features=lsp-tracing
|
|
||||||
if: '!(matrix.skip)'
|
|
||||||
publish-canary:
|
publish-canary:
|
||||||
name: publish canary
|
name: publish canary
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
Loading…
Add table
Reference in a new issue