Skip to content

Commit

Permalink
merge canary
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 13, 2024
2 parents 85a9dd3 + 9e918de commit ecf663e
Show file tree
Hide file tree
Showing 97 changed files with 3,355 additions and 219 deletions.
7 changes: 6 additions & 1 deletion .github/actions/next-stats-action/src/run/collect-diffs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ module.exports = async function collectDiffs(
filesToTrack.map(async (fileGroup) => {
const { globs } = fileGroup
const curFiles = []
const prettierExts = ['.js', '.html', '.css', '.json']

await Promise.all(
globs.map(async (pattern) => {
curFiles.push(...(await glob(pattern, { cwd: statsAppDir })))
curFiles.push(
...(await glob(pattern, { cwd: statsAppDir })).filter((item) =>
prettierExts.includes(path.extname(item))
)
)
})
)

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ jobs:
name: Deploy Turbopack docs
runs-on: ubuntu-latest
needs: [build]
continue-on-error: true
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -485,14 +486,19 @@ jobs:
run: npm i -g vercel@latest
- name: Install Rust
uses: ./.github/actions/setup-rust
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- uses: Swatinem/rust-cache@v2
- name: Deploy preview docs
if: ${{ needs.build.outputs.isRelease != 'true' }}
run: ./scripts/deploy-turbopack-docs.sh
env:
VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
DEPLOY_ENVIRONMENT: preview
- name: Deploy production docs
if: ${{ needs.build.outputs.isRelease == 'true' }}
if: ${{ github.ref_name == 'canary' || needs.build.outputs.isRelease == 'true' }}
run: ./scripts/deploy-turbopack-docs.sh
env:
VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ jobs:
with:
components: rustfmt, clippy

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
if: ${{ inputs.skipNativeBuild != 'yes' || inputs.needsNextest == 'yes' || inputs.needsRust == 'yes' }}
with:
mdbook-version: 'latest'

- name: 'Install mold linker'
if: ${{ inputs.mold == 'yes' }}
run: |
Expand Down
70 changes: 34 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ swc_core = { version = "0.90.7", features = [
testing = { version = "0.35.18" }

# Turbo crates
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240213.4" }
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240213.5" }
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240213.4" }
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240213.5" }
# [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240213.4" }
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240213.5" }

# General Deps

Expand Down
Loading

0 comments on commit ecf663e

Please sign in to comment.