Create c-cpp.yml #1
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: Rchan CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake build-essential | |
- name: Create build directory | |
run: mkdir build | |
- name: Configure CMake | |
working-directory: ./build | |
run: cmake .. | |
- name: Build | |
working-directory: ./build | |
run: make | |
- name: Run Rchan tests | |
working-directory: ./build | |
run: make testRchan | |
- name: Run Speed tests | |
working-directory: ./build | |
run: make testSpeed |