mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Clean up the build directory if clean
is set to true
This commit is contained in:
parent
22459a8f6d
commit
51f4f1414f
4 changed files with 17 additions and 4 deletions
18
.github/actions/setup/directories/action.yml
vendored
18
.github/actions/setup/directories/action.yml
vendored
|
@ -49,6 +49,13 @@ inputs:
|
|||
default: '1'
|
||||
description: The depth of commit history fetched from the remote repository
|
||||
|
||||
clean:
|
||||
required: false
|
||||
type: boolean
|
||||
default: ''
|
||||
description: >-
|
||||
If set to true, clean build directory.
|
||||
|
||||
outputs: {} # nothing?
|
||||
|
||||
runs:
|
||||
|
@ -147,9 +154,12 @@ runs:
|
|||
grep -F A.rb a.rb > /dev/null && set "${@:27}"
|
||||
echo files="$*" >> $GITHUB_OUTPUT
|
||||
|
||||
- if: steps.dummy-files.outcome == 'success'
|
||||
- if: steps.dummy-files.outcome == 'success' || inputs.clean == 'true'
|
||||
uses: gacts/run-and-post-run@674528335da98a7afc80915ff2b4b860a0b3553a # v1.4.0
|
||||
with:
|
||||
working-directory: ${{ inputs.builddir }}
|
||||
post:
|
||||
rm ${{ steps.dummy-files.outputs.files }}
|
||||
working-directory:
|
||||
post: |
|
||||
cd ${{ inputs.builddir }} && rm ${{ steps.dummy-files.outputs.files }}
|
||||
cd ${{ inputs.builddir }} && make distclean
|
||||
find ${{ inputs.builddir }} -ls
|
||||
[ "${{ inputs.builddir }}" = "${{ inputs.srcdir }}" ] || rmdir ${{ inputs.builddir }}
|
||||
|
|
1
.github/workflows/compilers.yml
vendored
1
.github/workflows/compilers.yml
vendored
|
@ -240,6 +240,7 @@ jobs:
|
|||
srcdir: src
|
||||
builddir: build
|
||||
makeup: true
|
||||
clean: true
|
||||
|
||||
- name: Run configure
|
||||
run: >
|
||||
|
|
1
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
|
@ -67,6 +67,7 @@ jobs:
|
|||
srcdir: src
|
||||
builddir: build
|
||||
makeup: true
|
||||
clean: true
|
||||
dummy-files: ${{ matrix.test_task == 'check' }}
|
||||
# Set fetch-depth: 0 so that Launchable can receive commits information.
|
||||
fetch-depth: 10
|
||||
|
|
1
.github/workflows/ubuntu.yml
vendored
1
.github/workflows/ubuntu.yml
vendored
|
@ -79,6 +79,7 @@ jobs:
|
|||
srcdir: src
|
||||
builddir: build
|
||||
makeup: true
|
||||
clean: true
|
||||
dummy-files: ${{ matrix.test_task == 'check' }}
|
||||
# Set fetch-depth: 10 so that Launchable can receive commits information.
|
||||
fetch-depth: 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue