[pscm-core] a new simplest implementation based on LLVM #34
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: 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 | |