OSDN Git Service

Fix up workflows for libcurl dependence
[hengbandforosx/hengbandosx.git] / .github / workflows / test-linux-build.yaml
1 # Verify that the software builds on Linux either with English or Japanese
2 # enabled.
3
4 name: test-linux-build
5
6 on:
7   push:
8     branches: [ 'macos-develop', 'macos-2-2-1', 'macos-1-6-2' ]
9   pull_request:
10
11 jobs:
12   english:
13     name: English
14     runs-on: ubuntu-latest
15     env:
16       # This will be passed to all invocations of configure for this test.
17       # Could drop --disable-net if libcurl is installed.
18       DEFAULT_CONFIGURE_OPTIONS: --disable-japanese --disable-net
19
20     steps:
21       - name: Clone Project
22         uses: actions/checkout@v3
23         with:
24           submodules: true
25
26       # Requires automake and autoconf; install those via apt-get.
27       - name: Install Build Dependencies
28         run: sudo apt-get install autoconf automake
29
30       - name: Build
31         run: |
32           ./bootstrap
33           ./configure ${{ env.DEFAULT_CONFIGURE_OPTIONS }}
34           make
35
36       # Use make distcheck to verify that configure.ac and the Makefile.am
37       # files properly list all the dependencies and that a build outside of
38       # of the source tree works.
39       - name: Distcheck
40         run: |
41           ./bootstrap
42           ./configure ${{ env.DEFAULT_CONFIGURE_OPTIONS }}
43           make DISTCHECK_CONFIGURE_FLAGS="${{ env.DEFAULT_CONFIGURE_OPTIONS }} --disable-pch" \
44             distcheck
45
46   # Unless building 1.6.2; make distcheck will not work with the Japanese
47   # build (the preprocessing to change the source encoding modifies the source
48   # tree) so don't test that for the Japanese build.
49   japanese:
50     name: Japanese
51     runs-on: ubuntu-latest
52     env:
53       # This will be passed to all invocations of configure for this test.
54       DEFAULT_CONFIGURE_OPTIONS: --disable-pch
55
56     steps:
57       - name: Clone Project
58         uses: actions/checkout@v3
59         with:
60           submodules: true
61
62       # Requires automake, autoconf, and, unless building the 1.6.2 version,
63       # nkf.  Hengband 3.0.0 now requires libcurl if not configured with
64       # --disable-net.  Install those via apt-get.
65       - name: Install Build Dependencies
66         run: sudo apt-get install automake autoconf nkf libcurl
67
68       - name: Build
69         run: |
70           ./bootstrap
71           ./configure ${{ env.DEFAULT_CONFIGURE_OPTIONS }}
72           make