Skip to content

Commit 20a940e

Browse files
committed
merging
2 parents 66bd66b + 4636c7c commit 20a940e

File tree

298 files changed

+1036913
-3496740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+1036913
-3496740
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run C++ Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'maint/maint*'
8+
pull_request:
9+
branches: '**'
10+
11+
jobs:
12+
build:
13+
name: Lint ICU4C C++ executor
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read # change to write for thread comments
18+
# metadata: read # for thread comments
19+
# pull-requests: write # for pull request reviews
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Setup deps, etc. # install JSON-C, download ICU4C binaries if not present
25+
run: |
26+
bash setup.sh
27+
sudo apt-get install libicu-dev
28+
- name: Run clang-tidy
29+
run: |
30+
pushd executors/cpp
31+
clang-tidy *.cpp --config-file="clang-tidy-config.yml" -p .

.github/workflows/dart.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: package:dart_executor
2+
permissions: read-all
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
paths:
8+
- ".github/workflows/dart.yaml"
9+
- "executors/dart**"
10+
push:
11+
branches: [main]
12+
paths:
13+
- ".github/workflows/dart.yaml"
14+
- "executors/dart**"
15+
schedule:
16+
- cron: "0 0 * * 0" # weekly
17+
18+
jobs:
19+
build_and_test:
20+
runs-on: ${{ matrix.os }}
21+
22+
defaults:
23+
run:
24+
working-directory: executors/dart
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest, windows-latest, macos-latest]
28+
steps:
29+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
30+
31+
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
32+
with:
33+
sdk: 3.10.0-37.0.dev
34+
35+
- run: dart pub get
36+
37+
- name: Check formatting
38+
run: dart format --output=none --set-exit-if-changed .
39+
if: always()
40+
41+
- name: Analyze code
42+
run: dart analyze --fatal-infos
43+
if: always()
44+
45+
- run: dart test
46+
47+
- run: dart test -p chrome
48+
49+
- name: Check if version is set correctly
50+
run: |
51+
dart bin/set_version.dart
52+
dart bin/make_runnable_by_node.dart
53+
git diff --exit-code

.github/workflows/e2e.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
run_all:
19-
name: End-to-end (Gen data, run tests, gen GH Pages)
19+
name: End-to-end
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout repo
@@ -33,18 +33,18 @@ jobs:
3333
- name: Setup version of Dart
3434
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
3535
with:
36-
sdk: dev
36+
sdk: 3.10.0-37.0.dev
3737
- name: Set version of Rust
3838
uses: actions-rs/toolchain@v1
3939
with:
40-
toolchain: 1.73
40+
toolchain: 1.82
4141
- name: Run End-to-end script
4242
run: bash generateDataAndRun.sh
4343
- name: Setup Pages
4444
id: pages
45-
uses: actions/configure-pages@v3
45+
uses: actions/configure-pages@v4
4646
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@v1
47+
uses: actions/upload-pages-artifact@v3
4848
with:
4949
path: TEMP_DATA/testReports/
5050

@@ -53,10 +53,14 @@ jobs:
5353
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
5454
runs-on: ubuntu-latest
5555
needs: run_all
56+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
57+
permissions:
58+
pages: write # to deploy to Pages
59+
id-token: write # to verify the deployment originates from an appropriate source
5660
environment:
5761
name: github-pages
5862
url: ${{ steps.deployment.outputs.page_url }}
5963
steps:
6064
- name: Deploy to GitHub Pages
6165
id: deployment
62-
uses: actions/deploy-pages@v1
66+
uses: actions/deploy-pages@v4

.github/workflows/run-rust.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
icu4x-version: [ '1.3', '1.4' ]
15-
name: Lint the executor code for ICU4X
14+
icu4x-version: [ '1.3', '1.4', '1.5', '2.0-beta1', '2.0-beta2', '2.0' ]
15+
name: Lint ICU4X Rust executor
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v2
1919
- uses: actions-rs/toolchain@v1
2020
with:
21-
toolchain: 1.73
21+
toolchain: "1.82"
2222
components: rustfmt, clippy
2323
default: true
2424
- uses: actions-rs/cargo@v1
@@ -31,4 +31,8 @@ jobs:
3131
with:
3232
command: fmt
3333
args: --manifest-path executors/rust/${{ matrix.icu4x-version }}/Cargo.toml -- --check
34+
- name: "Run Rustfmt (executor code)"
35+
run: rustfmt executors/rust/src/** --check
36+
- name: "Run Rustfmt (common code)"
37+
run: rustfmt executors/rust/common/** --check
3438

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
#*#
22
*~
33
*#
4+
*.#
45
.vscode
56

7+
*Minibuf-*
8+
69
.pylintrc
710
.idea
811
.devcontainer
912

1013
executors/rust/target/
1114
executors/cpp/executor
12-
executors/dart_native/bin/executor/
15+
executors/dart/bin/executor/
1316

1417
gh-cache/
1518

@@ -50,6 +53,3 @@ logrotate.state
5053

5154
# Maven
5255
dependency-reduced-pom.xml
53-
54-
# Dart
55-
executors/dart/.dart_tool/

DDT_DATA/Small tests.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)