Skip to content

Commit

Permalink
Create separate actions for debug and release
Browse files Browse the repository at this point in the history
  • Loading branch information
mleleszi committed Jun 8, 2024
1 parent dae7199 commit 1fb0c66
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml → .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror" ..
- name: make
run: cd build && make
- name: Run Test
- name: Run tests
run: /home/runner/work/cpp-redis-clone/cpp-redis-clone/build/tests/redis_test
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: run_tests-Release

on:
push:
branches:
- "**"
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: cmake
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Werror" ..
- name: make
run: cd build && make
- name: Run tests
run: /home/runner/work/cpp-redis-clone/cpp-redis-clone/build/tests/redis_test

0 comments on commit 1fb0c66

Please sign in to comment.