mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-15 15:10:28 +01:00
8a7333ef49
shoutout to github for shipping broken OS images
64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
name: build
|
|
|
|
# build on c/cpp changes or workflow changes
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.[ch]'
|
|
- '**.cpp'
|
|
- '**/CMakeLists.txt'
|
|
- 'util/ci/**'
|
|
- '.github/workflows/**.yml'
|
|
pull_request:
|
|
paths:
|
|
- '**.[ch]'
|
|
- '**.cpp'
|
|
- '**/CMakeLists.txt'
|
|
- 'util/ci/**'
|
|
- '.github/workflows/**.yml'
|
|
|
|
jobs:
|
|
gcc:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install deps
|
|
run: |
|
|
source util/ci/script.sh
|
|
install_linux_deps
|
|
|
|
- name: Build
|
|
run: |
|
|
source util/ci/script.sh
|
|
run_build
|
|
env:
|
|
CC: gcc
|
|
CXX: g++
|
|
|
|
- name: Test
|
|
run: |
|
|
source util/ci/script.sh
|
|
do_functional_test
|
|
|
|
clang:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install deps
|
|
run: |
|
|
source util/ci/script.sh
|
|
install_linux_deps
|
|
|
|
- name: Build
|
|
run: |
|
|
source util/ci/script.sh
|
|
run_build
|
|
env:
|
|
CC: clang
|
|
CXX: clang++
|
|
|
|
- name: Test
|
|
run: |
|
|
source util/ci/script.sh
|
|
do_functional_test
|