Skip to content

Commit

Permalink
ICU-22354 Update actions and platforms in GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
VoltrexKeyva committed Apr 28, 2023
1 parent 62f4938 commit cf0e655
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 80 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cache_retain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout lfs objects
Expand All @@ -45,4 +45,4 @@ jobs:
- name: Run Maven unit & integration tests
run: |
cd icu4j/maven-build;
mvn --batch-mode verify
mvn --batch-mode verify
64 changes: 32 additions & 32 deletions .github/workflows/icu_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
icu4c-docs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C doc
run: |
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout lfs objects
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
java-version: [ '8', '11', '17' ]
steps:
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout lfs objects
Expand All @@ -102,7 +102,7 @@ jobs:
java-version: [ '8', '11', '17' ]
steps:
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout lfs objects
Expand All @@ -125,7 +125,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout lfs objects
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout lfs objects
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
gcc-debug-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with gcc
env:
Expand All @@ -219,7 +219,7 @@ jobs:
clang-release-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install doxygen
run: |
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
gcc-10-stdlib14:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with gcc 10 and c++14 and extra warnings.
env:
Expand All @@ -275,7 +275,7 @@ jobs:
clang-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with clang and asan
run: |
Expand All @@ -289,7 +289,7 @@ jobs:
clang-ubsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with clang and ubsan +alignment
run: |
Expand All @@ -304,7 +304,7 @@ jobs:
clang-cfi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with clang using CFI
run: |
Expand All @@ -323,7 +323,7 @@ jobs:
clang-tsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with clang and tsan
run: |
Expand All @@ -341,7 +341,7 @@ jobs:
macos-clang:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C with clang on MacOS
run: |
Expand All @@ -353,7 +353,7 @@ jobs:
run-with-stubdata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C tests with stubdata
run: |
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
u-charset-is-utf8-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
cd icu4c/source;
./runConfigureICU Linux CPPFLAGS="-DU_CHARSET_IS_UTF8=1";
Expand All @@ -406,7 +406,7 @@ jobs:
u-override-cxx-allocation-is-0-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
cd icu4c/source;
./runConfigureICU Linux CPPFLAGS="-DU_OVERRIDE_CXX_ALLOCATION=0";
Expand All @@ -417,7 +417,7 @@ jobs:
lstm-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
cd icu4c/source;
ICU_DATA_FILTER_FILE=../../.github/lstm_for_th_my.json ./runConfigureICU --enable-debug --disable-release Linux -disable-layoutex;
Expand All @@ -428,7 +428,7 @@ jobs:
adaboost-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
cd icu4c/source;
ICU_DATA_FILTER_FILE=../../.github/adaboost.json CPPFLAGS=-DUCONFIG_USE_ML_PHRASE_BREAKING=1 ./runConfigureICU --enable-debug --disable-release Linux -disable-layoutex;
Expand All @@ -439,7 +439,7 @@ jobs:
testmap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
cd icu4c/source;
./runConfigureICU Linux;
Expand All @@ -452,28 +452,28 @@ jobs:
copyright-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: perl tools/scripts/cpysearch/cpyscan.pl

# Check compilation of internal headers.
internal-header-compilation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: cd icu4c/source; test/hdrtst/testinternalheaders.sh

# Check source files for valid UTF-8 and for absence of BOM.
valid-UTF-8-and-no-BOM-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: tools/scripts/icu-file-utf8-check.py

# Verify icu4c release tools buildability.
icu4c-release-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: mvn -f tools/release/java/pom.xml package dependency:analyze

# Run unit tests with UCONFIG_NO_XXX variations.
Expand Down Expand Up @@ -501,7 +501,7 @@ jobs:
- "-DUCONFIG_NO_LEGACY_CONVERSION=1 -DUCONFIG_NO_NORMALIZATION=1 -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_IDNA=1 -DUCONFIG_NO_COLLATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DUCONFIG_NO_SERVICN=1 -DUCONFIG_NO_FILTERED_BREAK_ITERATION=1"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Verify no additional new UCONFIG_NO_xxx added
run: |
# Test that we have exactly 12 "#ifndef UCONFIG_NO_" in uconfig.h. If the number changes, we need to also
Expand Down Expand Up @@ -547,7 +547,7 @@ jobs:
- "-DUCONFIG_NO_LEGACY_CONVERSION=1 -DUCONFIG_NO_NORMALIZATION=1 -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_IDNA=1 -DUCONFIG_NO_COLLATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DUCONFIG_NO_SERVICN=1 -DUCONFIG_NO_FILTERED_BREAK_ITERATION=1"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Verify no additional new UCONFIG_NO_xxx added
run: |
# Test that we have exactly 12 "#ifndef UCONFIG_NO_" in uconfig.h. If the number changes, we need to also
Expand Down Expand Up @@ -576,14 +576,14 @@ jobs:
unicode-update-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v1
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Get CI Linux runner VM version
id: linux-version
run: |
echo "LINUX_VERSION=$(grep -F VERSION_ID /etc/os-release | cut -d'"' -f2)" >> $GITHUB_OUTPUT
- name: Mount bazel cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel-${{ runner.os }}-${{ steps.linux-version.outputs.LINUX_VERSION }}
Expand Down Expand Up @@ -615,7 +615,7 @@ jobs:
icu4c-test-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ICU4C configure and build
run: |
Expand All @@ -640,7 +640,7 @@ jobs:
icu4c-without-collation-rule-strings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install hjson dependency
run: |
sudo apt-get install python3-pip
Expand Down Expand Up @@ -680,7 +680,7 @@ jobs:
icu4c-uconfig-no-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set UCONFIG_NO_CONVERSION and configure ICU4C
env:
UCONFIG_NO_CONVERSION: 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/icu_envtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
locale -a;
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: |
cd icu4c/source/;
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
find /usr/share/zoneinfo/ -type f,l|egrep -v "/(right|posix)/"|egrep -v "\.tab"|wc -l;
find /usr/share/zoneinfo/ -type f,l|egrep -v "/(right|posix)/"|egrep -v "\.tab"|cut -d '/' -f5-50;
- name: Checkout and setup
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Build
run: |
cd icu4c/source/;
Expand Down
Loading

0 comments on commit cf0e655

Please sign in to comment.