diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 00000000..ff9e4fc3 --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -0,0 +1,35 @@ +name: saba-build-actions +on: [push] +jobs: + build-gcc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y cmake libbullet-dev libglu1-mesa-dev libx11-dev libxxf86vm-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libglfw3-dev + - name: build + run: | + mkdir build + cd build + cmake .. + make -j2 + + build-clang: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y cmake libbullet-dev libglu1-mesa-dev libx11-dev libxxf86vm-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libglfw3-dev + - name: build + env: + C_COMPILER: clang + CXX_COMPILER: clang++ + run: | + mkdir build + cd build + cmake .. + make -j2 diff --git a/README.jp.md b/README.jp.md index 180db92b..d5e5d1cb 100644 --- a/README.jp.md +++ b/README.jp.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/benikabocha/saba.svg?branch=master)](https://travis-ci.org/benikabocha/saba) [![Build status](https://ci.appveyor.com/api/projects/status/kjk8chdx0du65m3n?svg=true)](https://ci.appveyor.com/project/benikabocha/saba) +[![Build status](https://github.com/benikabocha/saba/actions/workflows/build-linux.yml/badge.svg)](https://github.com/benikabocha/saba/actions/workflows/build-linux.yml) * MMD (PMD/PMX/VMD/VPD) を再生できるライブラリ * Viewer (MMD/OBJ) diff --git a/README.md b/README.md index f5f9bfc8..3ac8a0a4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/benikabocha/saba.svg?branch=master)](https://travis-ci.org/benikabocha/saba) [![Build status](https://ci.appveyor.com/api/projects/status/kjk8chdx0du65m3n?svg=true)](https://ci.appveyor.com/project/benikabocha/saba) +[![Build status](https://github.com/benikabocha/saba/actions/workflows/build-linux.yml/badge.svg)](https://github.com/benikabocha/saba/actions/workflows/build-linux.yml) [日本語(japanese)](./README.jp.md)