-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
1,112 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["tools/codegen"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Development | ||
|
||
## Add support for new tool | ||
|
||
1\. Add base manifest to [`tools/codegen/base`](tools/codegen/base) directory. | ||
|
||
See JSON files in `tools/codegen/base` directory for examples of the manifest. | ||
|
||
2\. Generate manifest with the following command (replace `<tool>` with the tool name). | ||
|
||
```sh | ||
./tools/manifest.sh <tool> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
IFS=$'\n\t' | ||
cd "$(dirname "$0")"/.. | ||
|
||
git config user.name "Taiki Endo" | ||
git config user.email "te316e89@gmail.com" | ||
|
||
for manifest in manifests/*.json; do | ||
git add -N "${manifest}" | ||
if ! git diff --exit-code -- "${manifest}"; then | ||
name="$(basename "${manifest%.*}")" | ||
git add "${manifest}" | ||
git commit -m "Update ${name}" | ||
has_update=1 | ||
fi | ||
done | ||
|
||
if [[ -n "${has_update:-}" ]]; then | ||
echo "success=false" >>"${GITHUB_OUTPUT}" | ||
fi |
Oops, something went wrong.