summaryrefslogtreecommitdiff
path: root/.github/workflows/makefile.yml
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-05-11 10:34:41 +1000
committerMaxime Coste <mawww@kakoune.org>2025-05-11 10:34:41 +1000
commit2d8c0b8bf0d7d18218d4c939003da39a018361e7 (patch)
tree7d676d6884e79f5553847ce201d7787337992a95 /.github/workflows/makefile.yml
parent3dac6e28ef2baaf01924a6b71310fc18d0a3c17e (diff)
parentbcead34b533fc47a9eadfac423926f0c0beb63c8 (diff)
Merge remote-tracking branch 'svmhdvn/github-actions'
Diffstat (limited to '.github/workflows/makefile.yml')
-rw-r--r--.github/workflows/makefile.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml
new file mode 100644
index 00000000..e32f3ef6
--- /dev/null
+++ b/.github/workflows/makefile.yml
@@ -0,0 +1,44 @@
+name: Makefile CI
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+jobs:
+ build:
+ strategy:
+ matrix:
+ os: [ubuntu, macos]
+ toolchain: [gcc, llvm]
+ include:
+ - os: ubuntu
+ toolchain: gcc
+ install_cmd: |
+ sudo apt update
+ sudo apt install g++
+ CXX: g++
+ - os: ubuntu
+ toolchain: llvm
+ install_cmd: |
+ sudo apt update
+ sudo apt install clang
+ CXX: clang++
+ - os: macos
+ toolchain: gcc
+ install_cmd: |
+ brew update
+ brew install gcc
+ CXX: g++
+ - os: macos
+ toolchain: llvm
+ install_cmd: |
+ brew update
+ brew install llvm
+ CXX: clang++
+ runs-on: ${{ matrix.os }}-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Install dependencies
+ run: ${{ matrix.install_cmd }}
+ - name: Build and test
+ run: make CXX=${{ matrix.CXX }} -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) test