Skip to content

Commit

Permalink
fix directory
Browse files Browse the repository at this point in the history
  • Loading branch information
azeey committed Oct 6, 2023
1 parent 9b48e1e commit 3cb0270
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set cores to get stored in ./cores
- name: Set cores to get stored in "${{ github.workspace }}/cores"
run: |
sudo mkdir ./cores
sudo chmod 777 ./cores
sudo mkdir "${{ github.workspace }}/cores"
sudo chmod 777 "${{ github.workspace }}/cores"
# Core filenames will be of the form executable.pid.timestamp:
sudo bash -c "echo \"$PWD/cores/%e.%p.%t\" > /proc/sys/kernel/core_pattern"
sudo bash -c "echo \"${{ github.workspace }}/cores/%e.%p.%t\" > /proc/sys/kernel/core_pattern"
- name: Compile and test
id: ci
uses: azeey/action-gz-ci@focal_core_dump
- name: Fix core permissions
if: ${{ failure() }} # Run only if something went wrong
run: sudo chmod -R 777 ./cores
run: sudo chmod -R 777 "${{ github.workspace }}/cores"
- uses: actions/upload-artifact@v3
if: ${{ failure() }} # Run only if something went wrong
with:
Expand Down

0 comments on commit 3cb0270

Please sign in to comment.