Update cpp.yml #28
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 /tmp/test && cd /tmp/test && meson-init-cpp foo 0.1 14 && make && ./builddir/foo | |
- name: Test if version is incorrect | |
run: cd $(mkdir /tmp/test_incorrect) && meson-init-cpp foo 0.1 3000 && make && exit 0 |