forked from libsdl-org/SDL_mixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action and bump CMake to 3.0.0
Signed-off-by: Bensuperpc <[email protected]>
- Loading branch information
1 parent
c44477b
commit d4e30cc
Showing
2 changed files
with
79 additions
and
3 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,71 @@ | ||
name: linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
pull_request: | ||
branches: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-cmake: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: ["gcc", "clang"] | ||
shared: [YES, NO] | ||
build_type: [Release] | ||
|
||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
fetch-depth: 0 | ||
|
||
- name: dependencies | ||
run: | | ||
sudo apt -y update | ||
sudo apt -y install ninja-build libsdl2-dev | ||
- name: Configure CMake | ||
env: | ||
CC: ${{matrix.compiler}} | ||
run: | | ||
cmake -S . -B build -D CMAKE_BUILD_TYPE=${{matrix.build_type}} \ | ||
-G Ninja -D BUILD_SHARED_LIBS=${{matrix.shared}} | ||
- name: Build CMake | ||
run: ninja -C build | ||
build-make: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: ["gcc", "clang"] | ||
|
||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
fetch-depth: 0 | ||
|
||
- name: dependencies | ||
run: | | ||
sudo apt -y update | ||
sudo apt -y install libsdl2-dev | ||
- name: Configure make | ||
env: | ||
CC: ${{matrix.compiler}} | ||
run: | | ||
./configure | ||
- name: Build make | ||
run: make -j2 |
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