Skip to content

Commit

Permalink
Run gn check as a part of gn gen on CI. (brave#25119)
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov authored Aug 14, 2024
1 parent 6b242e4 commit 43438f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/.ci_features
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# This file contains supported CI features in the current checkout to
# conditionally enable them on CI. Use lower_snake_case naming.

gn_check_runs_on_gen
3 changes: 3 additions & 0 deletions build/commands/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,9 @@ const util = {
await util.buildNativeRedirectCC()

const extraGnGenOpts = config.extraGnGenOpts ? [config.extraGnGenOpts] : []
if (config.isCI) {
extraGnGenOpts.push('--check')
}
util.runGnGen(config.outputDir, config.buildArgs(), extraGnGenOpts, options)
})
},
Expand Down

0 comments on commit 43438f8

Please sign in to comment.