summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-08-19 17:29:35 +0200
committerLéo Lam <leo@leolam.fr>2020-08-19 17:30:14 +0200
commitfa00bc2d4e167d112aa1092a2dfac7194c6028b7 (patch)
tree293ad8caec046c2f578dbb526756fed9956cfc14 /.github/workflows/build.yml
parent37d87dee711c67b226e9579ffbdeecd214136091 (diff)
Add GitHub Actions config for Clang 4.0.1 builds
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..01319abf
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,27 @@
+name: build
+
+on:
+ # Trigger the workflow on push or pull request,
+ # but only for the master branch
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: [ubuntu-latest]
+ container:
+ image: leoetlino/botw-build:1.0.0
+
+ steps:
+ - uses: actions/checkout@v2
+ - run: git submodule update --init --recursive
+ - run: mkdir build
+ - name: Run CMake
+ run: cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=../ToolchainNX64.cmake ..
+ working-directory: ./build
+ - name: Build
+ run: ninja -C build