OSDN Git Service

b51a045306897208f13841b49a34950352303d3f
[jnethack/source.git] / .github / workflows / unix.yml
1 name: build on unix-like
2
3 on:
4   push:
5     branches: [develop]
6   pull_request:
7     branches: [develop]
8
9 jobs:
10   build:
11
12     runs-on: ${{matrix.os}}
13
14     strategy:
15       matrix:
16         os: [ubuntu-latest, macos-latest]
17
18     steps:
19     - uses: actions/checkout@v2
20
21     - name: linux_prereq
22       if: runner.os == 'Linux'
23       run: sudo apt-get install nkf libncurses5-dev
24
25     - name: macos_prereq
26       if: runner.os == 'macOS'
27       run: brew install nkf
28
29     - name: configure
30       run: ./configure
31
32     - name: make
33       run: make install
34
35     - uses: sarisia/actions-status-discord@v1
36       if: always()
37       env:
38         DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
39       with:
40         status: ${{ job.status }}