Fix linux #26
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: Linux | |
on: | |
push: | |
paths: | |
- "**/workflows/build_linux.yml" | |
- "**/cmake/**" | |
- "**/modules/**" | |
- "**/tests/**" | |
- "**/thirdparty/**" | |
- "CMakeLists.txt" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y \ | |
libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev libfreetype6-dev \ | |
libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev \ | |
libxrandr-dev libxrender-dev libglu1-mesa-dev mesa-common-dev | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{runner.workspace}}/build | |
- name: Configure | |
working-directory: ${{runner.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -G "Ninja Multi-Config" -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=OFF | |
- name: Build Debug | |
working-directory: ${{runner.workspace}}/build | |
run: cmake --build . --config Debug --parallel 4 --target yup_tests | |
- name: Test Debug | |
working-directory: ${{runner.workspace}}/build/tests/Debug | |
run: ./yup_tests | |
- name: Build Release | |
working-directory: ${{runner.workspace}}/build | |
run: cmake --build . --config Release --parallel 4 --target yup_tests | |
- name: Test Release | |
working-directory: ${{runner.workspace}}/build/tests/Release | |
run: ./yup_tests |