Skip to content

Merge pull request #139 from bcc2528/master #667

Merge pull request #139 from bcc2528/master

Merge pull request #139 from bcc2528/master #667

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ master ]
tags-ignore:
- 'v*' # Don't run if tagged as v*.
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: mkdir
run: mkdir ci_windows
- name: build
run: |
cmake ../src
cmake --build . --config Release
working-directory: ./ci_windows
- name: mkdir_gui
run: mkdir build
working-directory: ./gui
- name: checkout_gui
run: git clone https://github.com/captainys/public.git
working-directory: ./gui/src
- name: build_gui
run: |
cmake ../src
cmake --build . --config Release --target Tsugaru_GUI
working-directory: ./gui/build
- name: make_zip
run: |
cmake -E copy ./main_cui/Release/Tsugaru_CUI.exe .
cmake -E copy ../gui/build/main_gui/Release/Tsugaru_GUI.exe .
cmake -E copy ../readme.md .
cmake -E copy ../command.md .
cmake -E tar cvf windows_binary_latest.zip --format=zip Tsugaru_CUI.exe Tsugaru_GUI.exe readme.md command.md
working-directory: ./ci_windows
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: mkdir
run: mkdir ci_ubuntu
- name: install-OpenGL
run: |
sudo apt-get update
sudo apt-get install libglu1-mesa-dev mesa-common-dev
- name: install-ALSA
run: sudo apt-get install libasound2-dev
- name: cmake
run: cmake ../src -DCMAKE_BUILD_TYPE=Release
working-directory: ./ci_ubuntu
- name: build
run: cmake --build . --config Release --target Tsugaru_CUI
working-directory: ./ci_ubuntu
- name: mkdir_gui
run: mkdir build
working-directory: ./gui
- name: checkout_gui
run: git clone https://github.com/captainys/public.git
working-directory: ./gui/src
- name: build_gui
run: |
cmake ../src -DCMAKE_BUILD_TYPE=Release
cmake --build main_gui --config Release --target Tsugaru_GUI
working-directory: ./gui/build
- name: make_zip
run: |
cmake -E copy ./main_cui/Tsugaru_CUI .
cmake -E copy ../gui/build/main_gui/Tsugaru_GUI .
cmake -E copy ../readme.md .
cmake -E copy ../command.md .
cmake -E tar cvf ubuntu_binary_latest.zip --format=zip Tsugaru_CUI Tsugaru_GUI readme.md command.md
working-directory: ./ci_ubuntu
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: mkdir
run: mkdir ci_macos
- name: cmake
run: cmake ../src -DCMAKE_BUILD_TYPE=Release
working-directory: ./ci_macos
- name: build
run: cmake --build .
working-directory: ./ci_macos
- name: mkdir_gui
run: mkdir build
working-directory: ./gui
- name: checkout_gui
run: git clone https://github.com/captainys/public.git
working-directory: ./gui/src
- name: build_gui
run: |
cmake ../src -DCMAKE_BUILD_TYPE=Release
cmake --build main_gui --config Release --target Tsugaru_GUI
working-directory: ./gui/build
- name: make_zip
run: |
cmake -E copy_directory ../gui/build/main_gui/Tsugaru_GUI.app ./Tsugaru_GUI.app
cmake -E copy main_cui/Tsugaru_CUI.app/Contents/MacOS/Tsugaru_CUI Tsugaru_GUI.app/Contents/MacOS/.
cmake -E copy ../readme.md .
cmake -E copy ../command.md .
cmake -E tar cvf macos_binary_latest.zip --format=zip Tsugaru_GUI.app readme.md command.md
working-directory: ./ci_macos