-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.63 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
build-mac:
name: Build macOS
runs-on: maxos-11
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
steps:
- name: download and extract
run: |
curl --output xerces-c-3.2.4.tar.gz https://dlcdn.apache.org/xerces/c/3/sources/xerces-c-3.2.4.tar.gz
tar xf xerces-c-3.2.4.tar.gz
- name: build
run: |
cd xerces-c-3.2.4
./configure --disable-network --enable-transcoder-macosunicodeconverter --enable-xmlch-char16_t --enable-mutexmgr-standard CFLAGS="-arch x86_64 -arch arm64" CXXFLAGS="-arch x86_64 -arch arm64"
make -j4
make DESTDIR=`pwd`/dist install
- name: package
run: |
cd xerces-c-3.2.4/dist/usr/local
zip ../../xerces-c-3.2.4-maxos-11.zip *
build-linux:
name: Build linux
runs-on: ubuntu-20.04
steps:
- name: download and extract
run: |
curl --output xerces-c-3.2.4.tar.gz https://dlcdn.apache.org/xerces/c/3/sources/xerces-c-3.2.4.tar.gz
tar xf xerces-c-3.2.4.tar.gz
- name: build
run: |
cd xerces-c-3.2.4
./configure --disable-network --enable-xmlch-char16_t --enable-mutexmgr-standard
make -j4
make DESTDIR=`pwd`/dist install
- name: infos
run: |
ls -l dist/usr/local/lib/
ldd dist/usr/local/lib/libxerces-c-3.2.so
- name: package
run: |
cd xerces-c-3.2.4/dist/usr/local
zip ../../xerces-c-3.2.4-linux-x64.zip *