-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (39 loc) · 1.41 KB
/
icu4c.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build ICU4C Demos
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
# "fail-fast: false" let other jobs keep running even if the test break in some locales.
fail-fast: false
matrix:
# Build with 3 configuration: the icu in the system, the latest rc and the latest release.
# Bump the verion after each release is out.
icu_path:
- system
- https://github.com/unicode-org/icu/releases/download/release-73-rc/icu4c-73rc-src.tgz
- https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-src.tgz
steps:
- uses: actions/checkout@v2
# ccache?
- name: Cache apk
uses: actions/cache@v2
with:
path: ~/.apk
key: apk
restore-keys: apk
- name: Build iucsamples4c with docker
run: |
cd iucsamples/c && docker run --rm -v $HOME/.apk:/etc/apk/cache -v $(pwd)/:/usr/src -w /usr/src alpine:edge sh -c "apk --update add gcc make g++ bsd-compat-headers pkgconfig icu-dev && make all check"
- name: Build icudemos with docker
# https://github.com/FrankYFTang/icu-demos/blob/main/icu-kube/build.sh
run: |
set +x;
exec docker build -t unicode/icu4c-demos:latest --build-arg ICU_PATH=${{matrix.icu_path}} . -f icu-kube/docker.d/icu4c-demos/Dockerfile
# TODO: non-docker build?