Skip to content

Commit

Permalink
separate test
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaeifar committed Dec 22, 2024
1 parent cc5cdd9 commit 2ba8836
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,26 @@ jobs:
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

# Run Unit Tests
# Upload the build artifact (e.g., compiled executables)
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: built-targets
path: ${{github.workspace}}/build/tests

# Separate Test Job
test:
runs-on: ubuntu-latest
needs: build # This job depends on the successful completion of the "build" job

steps:
- uses: actions/checkout@v3

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: built-targets

- name: Run Unit Tests
run: |
cd ${{github.workspace}}/build/tests
Expand Down

0 comments on commit 2ba8836

Please sign in to comment.