Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-17918 manual workflow for building json #76

Merged
merged 8 commits into from
Oct 23, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/build-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,55 @@ jobs:
lfs: false
repository: ${{ github.event.inputs.cldr-repo }}
path: cldr
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('cldr/tools/**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Clone Data
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.data-ref }}
repository: ${{ github.event.inputs.data-repo }}
sparse-checkout: ${{ github.event.inputs.data-dir }}
path: cldr-staging
- name: Setup Config
run: |
cd cldr-json
echo VERSION=${{ github.event.inputs.version }} > local-config.sh
echo CLDR_DIR=../cldr >> local-config.sh
echo INDATA=../cldr-staging/${{ github.event.inputs.data-dir }} >> local-config.sh
cat local-config.sh
chmod a+rx local-config.sh
bash cldr-identify.sh | tee ../cldr-identity.txt
- name: Upload cldr-identity.txt
uses: actions/upload-artifact@v4
with:
name: cldr-identity
path: ./cldr-identity.txt
- name: Build JSON
run: |
cd cldr-json
echo "::group::Cleanup"
rm -rf cldr-json
echo "::endgroup::"
echo "::group::Build"
bash cldr-generate-json.sh
echo "::endgroup::"
echo "::group::Status"
git status || true
echo "::endgroup::"
echo "::group::Zip"
bash cldr-generate-zip.sh
cp PACKAGES.md dist/
echo "::endgroup::"
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: cldr-json
path: ./cldr-json/dist



Loading