forked from kermitt2/pdfalto
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (59 loc) · 1.54 KB
/
ci-build.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, macos-latest, ubuntu-24.04-arm]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Set up dependencies for Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update -qq
sudo apt-get install -qq cmake build-essential clang icu-devtools
- name: Set up dependencies for macOS
if: runner.os == 'macOS'
run: |
brew update
brew upgrade cmake
brew install automake autoconf fontconfig
brew install icu4c ucon64
- name: Display versions macOs
if: runner.os == 'macOS'
run: |
gcc -v
g++ -v
cmake --version
/opt/homebrew/Cellar/ucon64/*/bin/ucon64 -v
- name: Display versions Linux
if: runner.os == 'Linux'
run: |
gcc -v
g++ -v
cmake --version
uconv -v
- name: set env variables
if: runner.os == 'macOS'
run: |
echo "" >> $GITHUB_ENV
echo "" >> $GITHUB_ENV
- name: Build
if: runner.os == 'macOS'
env:
C_INCLUDE_PATH: '/opt/homebrew/include'
CPLUS_INCLUDE_PATH: '/opt/homebrew/include'
run: |
cmake ./
make
- name: Build
if: runner.os == 'Linux'
run: |
cmake ./
make