Add Mecab as a cpp file (#21) #8
Workflow file for this run
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: Archlinux | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
mode: [debug, release] | |
container: archlinux:base-devel | |
runs-on: ${{ matrix.os }} | |
concurrency: | |
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Archlinux-${{ matrix.mode }} | |
cancel-in-progress: true | |
env: | |
XMAKE_ROOT: y | |
steps: | |
- name: Installation | |
run: | | |
pacman -Syu --noconfirm --needed openssl | |
pacman -Sy --noconfirm --needed glibc git base-devel perl make unzip p7zip | |
pacman -Sy --noconfirm --needed mesa gcc-fortran glu libc++ | |
git config --global --add safe.directory /__w/xmake/xmake | |
git config --global --add safe.directory /__w/xmake-repo/xmake-repo | |
pacman -Sy --noconfirm --needed xmake | |
- uses: actions/checkout@v4 | |
- name: Build gd-tools | |
run: | | |
xmake config -y -m ${{ matrix.mode }} | |
xmake config -y --tests=n | |
xmake build -y -vw "gd-tools" | |
- name: Build tests | |
run: | | |
xmake config -y -m ${{ matrix.mode }} | |
xmake config -y --tests=y | |
xmake build -y -vw "tests" | |
- name: Run tests | |
run: | | |
xmake run --workdir="$(pwd)" "tests" |