-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (60 loc) · 2.36 KB
/
macos_vau.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
71
72
73
74
75
76
77
78
79
80
81
name: MacOS Vau
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_vau_with_pscm:
strategy:
matrix:
mode: [ Debug ]
runs-on: [ macos-13 ]
steps:
- uses: actions/checkout@v3
- name: deps
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install ghostscript
env HOMEBREW_NO_AUTO_UPDATE=1 brew install freetype
- name: Install LLVM
run: env HOMEBREW_NO_AUTO_UPDATE=1 brew install llvm
- name: Install Ninja
run: env HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja
- name: Install SDL2
run: env HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
- name: Install icu4c
run: env HOMEBREW_NO_AUTO_UPDATE=1 brew install icu4c
- name: Clone Deps
run: git submodule update --init
working-directory: ${{github.workspace}}
- name: Clone Vau
run: git clone https://github.com/PikachuHy/vau.git -b vau_pscm
working-directory: ${{github.workspace}}/..
- name: Use pscm
run: ln -s ${{github.workspace}} pscm
working-directory: ${{github.workspace}}/../vau
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.mode}}
- name: Configure CMake
run: PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig cmake -S ${{github.workspace}}/../vau -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.mode}} -G Ninja -DUSE_CCACHE=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -j --verbose
- name: Test
working-directory: ${{github.workspace}}/build
run: TEXMACS_PATH=${{github.workspace}}/../vau/resources PSCM_LOAD_PATH=${{github.workspace}}/../vau/resources/progs ./Vau
- name: Check ps file
working-directory: ${{github.workspace}}/build
run: ls -lha
- name: Convert to pdf
working-directory: ${{github.workspace}}/build
run: ps2pdf vau-test.ps
- name: Check output pdf
working-directory: ${{github.workspace}}/build
run: |
ls -lha
ls -la vau-test.pdf2 | cut -d ' ' -f 8
- name: Check pdf size
working-directory: ${{github.workspace}}/build
run: bash ${{github.workspace}}/../vau/check.sh