Skip to content

Commit

Permalink
chore: build adev
Browse files Browse the repository at this point in the history
  • Loading branch information
lacolaco committed Jul 11, 2024
1 parent 900360a commit f4f4848
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ jobs:
# - run: yarn install
# - run: yarn build
# shell: pwsh
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: yarn
- run: yarn install
- run: yarn build
# build-macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - uses: actions/setup-node@v4
# with:
# node-version-file: '.node-version'
# cache: yarn
# - run: yarn install
# - run: yarn build
8 changes: 4 additions & 4 deletions tools/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { chalk } from 'zx';
import {
applyPatches,
buildAIO,
buildAdev,
copyLocalizedFiles,
remove404HTML,
copyRobots,
Expand All @@ -15,11 +15,11 @@ try {
console.log(chalk.green('==== setup ===='));
await setup();
console.log(chalk.green('==== preBuild ===='));
await preBuild();
// await preBuild();
console.log(chalk.green('==== build ===='));
await build();
console.log(chalk.green('==== postBuild ===='));
await postBuild();
// await postBuild();
} catch (e) {
console.error(chalk.red(e));
process.exit(1);
Expand All @@ -41,7 +41,7 @@ async function preBuild() {
}

async function build() {
await buildAIO();
await buildAdev();
}

async function postBuild() {
Expand Down
12 changes: 6 additions & 6 deletions tools/lib/common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ export async function resetBuildDir({ init = false }) {
}
}

export async function buildAIO() {
export async function buildAdev() {
await within(async () => {
cd(`${outDir}/aio`);
await $`yarn build`;
cd(`${outDir}`);
await $`yarn install --frozen-lockfile`;
await $`yarn bazel build //adev:build`;
});
}

export async function watchAIO() {
await within(async () => {
cd(`${outDir}/aio`);
await $`yarn setup`;
await $`yarn start`;
cd(`${outDir}`);
await $`yarn docs`;
});
}

Expand Down

0 comments on commit f4f4848

Please sign in to comment.