OSDN Git Service

c3ac820c34577ffc9856443ac2748c538c9e7037
[hengbandforosx/hengbandosx.git] / .github / workflows / pull-request-status-check.yml
1 name: Pull Request Status Check
2
3 on:
4   # プルリクエストがopen、synchronize、reopenされた時にトリガーする
5   pull_request:
6
7   # 手動トリガーを許可
8   workflow_dispatch:
9
10 jobs:
11   check_bom:
12     name: Check the BOM of the source files
13     runs-on: ubuntu-latest
14     steps:
15       - uses: actions/checkout@v3
16       - run: sh ./.github/scripts/check-bom.sh
17
18   check_format:
19     name: Check the format of the source files
20     runs-on: ubuntu-latest
21     steps:
22       - uses: actions/checkout@v3
23       - run: sh ./.github/scripts/check-format.sh
24
25   build_test_clang_without_pch:
26     name: Build Japanese version with clang (without using pre-compiled headers)
27     uses: ./.github/workflows/build-with-autotools.yml
28     with:
29       cxx: clang++-14
30       cxx-flags: "-pipe -O3 -Werror -Wall -Wextra -Wno-unused-const-variable -Wno-invalid-source-encoding"
31       configure-opts: "--disable-pch"
32       use-ccache: true
33
34   build_test_japanese:
35     name: Build Japanese version with gcc
36     needs: build_test_clang_without_pch
37     uses: ./.github/workflows/build-with-autotools.yml
38     with:
39       cxx: g++-11
40       cxx-flags: "-pipe -O3 -Werror -Wall -Wextra"
41       use-ccache: true
42
43   build_test_english:
44     name: Build English version with gcc
45     needs: build_test_japanese
46     uses: ./.github/workflows/build-with-autotools.yml
47     with:
48       cxx: g++-11
49       cxx-flags: "-pipe -O3 -Werror -Wall -Wextra"
50       configure-opts: "--disable-japanese"
51       distcheck: true
52       use-ccache: true
53
54   build_test_with_msvc:
55     name: Build test with MSVC
56     uses: ./.github/workflows/build-test-with-msvc.yml