Move linking flags to build.rs to help with non-cargo build systems #483
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "43 7 * * 0" | |
jobs: | |
test-default-features: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
icu_version: [63, 71, 72, 73] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Test ICU version ${{ matrix.icu_version }}' | |
run: 'make DOCKER_TEST_ENV=rust_icu_testenv-${{ matrix.icu_version}} docker-test' | |
test-with-features: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
icu_version: [71, 72, 73] | |
feature_set: | |
- "renaming,icu_version_in_env,icu_version_64_plus,icu_version_67_plus,icu_version_68_plus" | |
- "renaming,icu_version_64_plus,icu_version_67_plus,icu_version_68_plus,icu_config,use-bindgen" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Test ICU version ${{ matrix.icu_version }}' | |
run: 'make DOCKER_TEST_ENV=rust_icu_testenv-${{ matrix.icu_version }} RUST_ICU_MAJOR_VERSION_NUMBER=${{ matrix.icu_version }} DOCKER_TEST_CARGO_TEST_ARGS="--no-default-features --features ${{ matrix.feature_set }}" docker-test' | |
test-nondefault-features: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
icu_version: [63] | |
feature_set: | |
- "renaming,icu_version_in_env,icu_version_69_max" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Test ICU version ${{ matrix.icu_version }}' | |
run: 'make DOCKER_TEST_ENV=rust_icu_testenv-${{ matrix.icu_version }} RUST_ICU_MAJOR_VERSION_NUMBER=${{ matrix.icu_version }} DOCKER_TEST_CARGO_TEST_ARGS="--no-default-features --features ${{ matrix.feature_set }}" docker-test' | |
test-bindgen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Test static-bindgen' | |
run: 'make static-bindgen' | |
test-static-linking: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install icu4c | |
run: brew install [email protected] | |
- name: 'Test static linking' | |
run: RUST_ICU_MAJOR_VERSION_NUMBER=73 RUST_ICU_LINK_SEARCH_DIR=/opt/homebrew/opt/icu4c/lib cargo test --no-default-features --features=icu_version_in_env,renaming,static |