Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Apr 12, 2024
1 parent a8a5a5e commit 238823f
Showing 1 changed file with 51 additions and 2 deletions.
53 changes: 51 additions & 2 deletions .github/workflows/intl4x_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,61 @@ jobs:
echo "armv7-unknown-linux-gnueabihf.linker=\"arm-linux-gnueabihf-gcc\"" >> .cargo/config.toml
echo "riscv64gc-unknown-linux-gnu.linker=\"riscv64-linux-gnu-gcc\"" >> .cargo/config.toml
- name: Build
- name: pub get
run: |
cd ffi/dart
dart --enable-experiment=native-assets pub get
cd ../..
dart run ffi/dart/tool/build_libs.dart bin
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: |
mkdir bin
dart run ffi/dart/tool/build_libs.dart bin/android_arm android_arm
dart run ffi/dart/tool/build_libs.dart bin/android_arm64 android_arm64
dart run ffi/dart/tool/build_libs.dart bin/android_ia32 android_ia32
dart run ffi/dart/tool/build_libs.dart bin/android_x64 android_x64
dart run ffi/dart/tool/build_libs.dart bin/linux_arm linux_arm
dart run ffi/dart/tool/build_libs.dart bin/linux_arm64 linux_arm64
dart run ffi/dart/tool/build_libs.dart bin/linux_riscv64 linux_riscv64
dart run ffi/dart/tool/build_libs.dart bin/linux_x64 linux_x64
cargo build -p icu_datagen_dart --target aarch64-unknown-linux-gnu
cp target/aarch64-unknown-linux-gnu/icu_datagen_dart bin/linux_arm64-datagen
cargo build -p icu_datagen_dart --target riscv64gc-unknown-linux-gnu
cp target/riscv64gc-unknown-linux-gnu/icu_datagen_dart bin/linux_riscv64-datagen
cargo build -p icu_datagen_dart --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/icu_datagen_dart bin/linux_x64-datagen
cargo run -p icu_datagen -- --locales full --keys all --out bin/full.postcard
- name: Build Mac
if: matrix.os == 'macos-latest'
run: |
mkdir bin
dart run ffi/dart/tool/build_libs.dart bin/ios_arm ios_arm
dart run ffi/dart/tool/build_libs.dart bin/ios_arm64 ios_arm64
dart run ffi/dart/tool/build_libs.dart bin/ios_x64 ios_x64
dart run ffi/dart/tool/build_libs.dart bin/macos_arm64 macos_arm64
dart run ffi/dart/tool/build_libs.dart bin/macos_x64 macos_x64
cargo build -p icu_datagen_dart --target aarch64-apple-darwin
cp target/aarch64-apple-darwin/icu_datagen_dart bin/macos_arm64-datagen
cargo build -p icu_datagen_dart --target x86_64-apple-darwin
cp target/x86_64-apple-darwin/icu_datagen_dart bin/macos_x64-datagen
- name: Build Windows
if: matrix.os == 'windows-latest'
run: |
mkdir bin
dart run ffi/dart/tool/build_libs.dart bin/windows_arm64 windows_arm64
dart run ffi/dart/tool/build_libs.dart bin/windows_ia32 windows_ia32
dart run ffi/dart/tool/build_libs.dart bin/windows_x64 windows_x64
cargo build -p icu_datagen_dart --target aarch64-pc-windows-msvc
cp target/aarch64-pc-windows-msvc/icu_datagen_dart bin/windows_arm64-datagen
cargo build -p icu_datagen_dart --target x86_64-pc-windows-msvc
cp target/x86_64-pc-windows-msvc/icu_datagen_dart bin/windows_x64-datagen
- name: Upload artifacts
uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb
Expand Down

0 comments on commit 238823f

Please sign in to comment.