Skip to content

Add Mecab as a cpp file (#21) #8

Add Mecab as a cpp file (#21)

Add Mecab as a cpp file (#21) #8

Workflow file for this run

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"