Skip to content

Commit

Permalink
Don't cleanup build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 26, 2024
1 parent 5672819 commit 22f34b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ jobs:

- name: Run tests (ubuntu-latest)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: make c_test COV=true COMPILER_OVERRIDE=${{ matrix.compiler }}

- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
## limits ssh access and adds the ssh public key for the user which triggered the workflow
limit-access-to-actor: true
run: make c_test COV=true COMPILER_OVERRIDE=${{ matrix.compiler }} NO_CLEANUP=true

# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true

- name: Run tests (ubuntu lts)
if: ${{ contains(matrix.os, 'ubuntu') && matrix.os != 'ubuntu-latest' }}
Expand Down
6 changes: 3 additions & 3 deletions c/test_euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@
GCC_TEMPLATE = "{} {{}} -O2 -lm -Wall -Werror -std={} -march=native -flto -fwhole-program -o {{}}"
CLANG_TEMPLATE = "{} {{}} -O2 {} {} -Wall -Werror -std={} {} -o {{}}"
if environ.get('COV') == 'true':
GCC_TEMPLATE += ' -ftest-coverage -fprofile-arcs'
CLANG_TEMPLATE = CLANG_TEMPLATE.replace('-O2', '-O1') + ' -ftest-coverage'
GCC_TEMPLATE = GCC_TEMPLATE.replace('-O2', '-O1') + ' --coverage'
CLANG_TEMPLATE = CLANG_TEMPLATE.replace('-O2', '-O1') + ' --coverage -femit-coverage-data -femit-coverage-notes'

templates = {
'TCC': "tcc -lm -Wall -Werror -o {1} {0}",
Expand All @@ -181,7 +181,7 @@

@register
def cleanup():
if 'PYTEST_XDIST_WORKER' not in environ:
if 'PYTEST_XDIST_WORKER' not in environ and environ.get('NO_CLEANUP', 'false') != 'true':
rmtree(BUILD_FOLDER)


Expand Down

0 comments on commit 22f34b0

Please sign in to comment.