-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix(build): use cldr.version for cldr #345
Changes from all commits
afa390e
01a469f
049488e
de78601
0e7ee1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
name: Build JSP | ||
|
||
env: | ||
CURRENT_UVERSION: 15.1.0 | ||
PREVIOUS_UVERSION: 15.0.0 # not used at present | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -11,15 +15,31 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Get the CLDR_REF from pom.xml | ||
id: cldr_ref | ||
run: echo "CLDR_REF="$(mvn help:evaluate -Dexpression=cldr.version -q -DforceStdout | cut -d- -f3) >> $GITHUB_OUTPUT && cat ${GITHUB_OUTPUT} | ||
- name: Verify CLDR checkout ref | ||
run: echo CLDR_REF="${{ steps.cldr_ref.outputs.CLDR_REF }}" && [ "${{ steps.cldr_ref.outputs.CLDR_REF }}x" != "x" ] # fail if empty | ||
- name: Cache CLDR repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: cldr | ||
key: cldr-${{ steps.cldr_ref.outputs.CLDR_REF }} | ||
restore-keys: | | ||
cldr | ||
- name: Check out CLDR | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: unicode-org/cldr | ||
path: cldr | ||
ref: main | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternatively, you can try using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doesn't work because it's not a full hash. |
||
fetch-depth: 0 | ||
- name: Switch CLDR to CLDR_REF | ||
run: cd cldr && git fetch && git checkout ${{ steps.cldr_ref.outputs.CLDR_REF }} | ||
- name: Backup Unicodetools and CLDR for jsps # this is needed only for the Docker build | ||
run: | ||
mkdir -p UnicodeJsps/target && tar cfpz UnicodeJsps/target/cldr-unicodetools.tgz ./cldr ./unicodetools | ||
mkdir -p UnicodeJsps/target && tar -cpz --exclude=.git -f UnicodeJsps/target/cldr-unicodetools.tgz ./cldr ./unicodetools | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -38,16 +58,16 @@ jobs: | |
run: > | ||
mkdir -pv $(pwd)/output/Generated/ && | ||
mvn -s .github/workflows/mvn-settings.xml -B compile exec:java -DskipTests=true | ||
-Dexec.mainClass="org.unicode.text.UCD.Main" -Dexec.args="version 15.1.0 build MakeUnicodeFiles" | ||
-Dexec.mainClass="org.unicode.text.UCD.Main" -Dexec.args="version ${CURRENT_UVERSION} build MakeUnicodeFiles" | ||
-am -pl unicodetools -DCLDR_DIR=${GITHUB_WORKSPACE}/cldr | ||
-DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=15.1.0 | ||
-DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=${CURRENT_UVERSION} | ||
-DUNICODETOOLS_GEN_DIR=$(pwd)/output/Generated | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run unicodetools tests | ||
run: > | ||
mvn -s .github/workflows/mvn-settings.xml -B test -am -pl unicodetools | ||
-DCLDR_DIR=${GITHUB_WORKSPACE}/cldr -T 1C -Dparallel=classes -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=15.1.0 -DUNICODETOOLS_GEN_DIR=$(pwd)/output/Generated | ||
-DCLDR_DIR=${GITHUB_WORKSPACE}/cldr -T 1C -Dparallel=classes -DUNICODETOOLS_REPO_DIR=$(pwd) -DUVERSION=${CURRENT_UVERSION} -DUNICODETOOLS_GEN_DIR=$(pwd)/output/Generated | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Package JSPs | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,32 @@ jobs: | |
build-and-push-to-gcr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- uses: actions/checkout@v2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, it was checking out the repo twice! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably a merge conflict |
||
- name: Get the CLDR_REF from pom.xml | ||
id: cldr_ref | ||
run: echo "CLDR_REF="$(mvn help:evaluate -Dexpression=cldr.version -q -DforceStdout | cut -d- -f3) >> $GITHUB_OUTPUT && cat ${GITHUB_OUTPUT} | ||
- name: Verify CLDR checkout ref | ||
run: echo CLDR_REF="${{ steps.cldr_ref.outputs.CLDR_REF }}" && [ "${{ steps.cldr_ref.outputs.CLDR_REF }}x" != "x" ] # fail if empty | ||
- name: Cache CLDR | ||
uses: actions/cache@v2 | ||
with: | ||
path: cldr | ||
key: cldr-${{ steps.cldr_ref.outputs.CLDR_REF }} | ||
restore-keys: | | ||
cldr-${{ steps.cldr_ref.outputs.CLDR_REF }} | ||
- name: Check out CLDR | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v1.2 # yes, v1 due to https://github.com/actions/checkout/issues/265 | ||
with: | ||
repository: unicode-org/cldr | ||
path: cldr | ||
ref: ${{ steps.cldr_ref.outputs.CLDR_REF }} | ||
- name: Backup Unicodetools and CLDR for jsps | ||
run: | ||
mkdir -p UnicodeJsps/target && tar cfpz UnicodeJsps/target/cldr-unicodetools.tgz ./cldr ./unicodetools | ||
mkdir -p UnicodeJsps/target && tar -cpz --exclude=.git -f UnicodeJsps/target/cldr-unicodetools.tgz ./cldr ./unicodetools | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.unicode.unittest; | ||
|
||
public class TestTestFmwk extends TestFmwkMinusMinus { | ||
@org.junit.jupiter.api.Test | ||
void Test() { | ||
assertContains("hay hay hay hay needle hay hay hay", "needle"); | ||
logln("Everything is OK"); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated deps based break
Broken:
https://github.com/unicode-org/unicodetools/actions/runs/3576355216/jobs/6014061731
Bad err message… debugged it to find the failing issue
came across
https://stackoverflow.com/questions/74558565/flake8-error-code-supplied-to-ignore-option-does-not-match-a-z1-30
from a few days ago
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been biting tons of Python devs who use flake8 for linting. Inline comments have always been "wrong", they're just enforcing it now :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a better error message would have been nice…
And yes, it's open source and i haven't opened a PR yet.