Update cpp.yml #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install Mesa and Run | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Meson | |
run: sudo apt-get install meson build-essential | |
- name: compile | |
run: make | |
- name: install | |
run: sudo make install | |
- name: Test if correct version | |
run: mkdir test && cd test && meson-init-cpp foo 0.1 14 && make && ./builddir/foo | |
- name: Test if version is incorrect | |
run: mkdir test && cd test && meson-init-cpp 0.1 3000 && make && exit 0 |