YukunJ new push/pull_request build and test Turtle #83
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: Build & Test | |
run-name: ${{ github.actor }} new push/pull_request build and test Turtle | |
on: [push, pull_request] | |
jobs: | |
BuildAndTest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Repository Code | |
uses: actions/checkout@v3 | |
- name: Install Environment | |
run: sh ./setup/setup.sh | |
- name: Start MySQL Server | |
run: sudo systemctl start mysql | |
- name: Setup default MySQL | |
run: sudo mysql -u root -p"root" < ./setup/setup.sql | |
- name: Show CMake Version | |
run: cmake --version | |
- name: Build and Test Turtle | |
run: mkdir build && cd build && cmake .. && make && make test |