-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continuous integration using GitHub Actions
- Loading branch information
Showing
6 changed files
with
123 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: CI - Build and Test | ||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
build-type: [ Debug, Release ] | ||
port-audio: [ ENABLE_PORTAUDIO=ON, ENABLE_PORTAUDIO=OFF ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install --yes --quiet --no-install-recommends \ | ||
libasound2-dev \ | ||
libmp3lame-dev \ | ||
libogg-dev \ | ||
libsndfile1-dev \ | ||
libvorbis-dev \ | ||
portaudio19-dev | ||
- uses: actions/checkout@v2 | ||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{ github.workspace }}/build | ||
- name: Configure CMake | ||
working-directory: ${{ github.workspace }}/build | ||
# Note the current convention is to use the -S and -B options here to | ||
# specify source and build directories, but this is only available with | ||
# CMake 3.13 and higher. The CMake binaries on the Github Actions | ||
# machines are (as of this writing) 3.12 | ||
run: > | ||
cmake $GITHUB_WORKSPACE | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | ||
-D${{ matrix.port-audio }} | ||
-DENABLE_MP3LAME=ON | ||
-DENABLE_SNDFILE=ON | ||
-DENABLE_VORBIS=ON | ||
- name: Build | ||
working-directory: ${{ github.workspace }}/build | ||
run: cmake --build . --config ${{ matrix.build-type }} | ||
- name: Test | ||
working-directory: ${{ github.workspace }}/build | ||
run: ctest -C ${{ matrix.build-type }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CodeQL Analysis | ||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
analyze: | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
strategy: | ||
matrix: | ||
build-type: [ Release ] | ||
language: [ cpp ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install --yes --quiet --no-install-recommends \ | ||
libasound2-dev \ | ||
libmp3lame-dev \ | ||
libogg-dev \ | ||
libsndfile1-dev \ | ||
libvorbis-dev \ | ||
portaudio19-dev | ||
- uses: actions/checkout@v2 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: security-and-quality | ||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{ github.workspace }}/build | ||
- name: Configure CMake | ||
working-directory: ${{ github.workspace }}/build | ||
# Note the current convention is to use the -S and -B options here to | ||
# specify source and build directories, but this is only available with | ||
# CMake 3.13 and higher. The CMake binaries on the Github Actions | ||
# machines are (as of this writing) 3.12 | ||
run: > | ||
cmake $GITHUB_WORKSPACE | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | ||
-DENABLE_PORTAUDIO=ON | ||
-DENABLE_MP3LAME=ON | ||
-DENABLE_SNDFILE=ON | ||
-DENABLE_VORBIS=ON | ||
- name: Build | ||
working-directory: ${{ github.workspace }}/build | ||
run: cmake --build . --config ${{ matrix.build-type }} | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2010-2020 Arkadiusz Bokowy <[email protected]> | ||
Copyright (c) 2010-2021 Arkadiusz Bokowy <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
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
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