OSDN Git Service

add Github Actions
authorSHIRAKATA Kentaro <argrath@ub32.org>
Tue, 14 Apr 2020 21:29:09 +0000 (06:29 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Fri, 17 Apr 2020 18:47:22 +0000 (03:47 +0900)
.github/workflows/unix.yml [new file with mode: 0644]

diff --git a/.github/workflows/unix.yml b/.github/workflows/unix.yml
new file mode 100644 (file)
index 0000000..8847f8b
--- /dev/null
@@ -0,0 +1,33 @@
+name: build on unix-like
+
+on:
+  push:
+    branches: [develop]
+  pull_request:
+    branches: [develop]
+
+jobs:
+  build:
+
+    runs-on: ${{matrix.os}}
+
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macos-latest]
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: linux_prereq
+      if: runner.os == 'Linux'
+      run: sudo apt-get install nkf libncurses5-dev
+
+    - name: macos_prereq
+      if: runner.os == 'macOS'
+      run: brew install nkf
+
+    - name: configure
+      run: ./configure
+
+    - name: make
+      run: make