Skip to content

Commit

Permalink
ci: clean workspace on self-hosted runners
Browse files Browse the repository at this point in the history
Added `tarantool/actions/cleanup` action to each job which uses
self-hosted runners.

The action cleans workspace directory of self-hosted runner after
previous run. The main reason to add this action is 'Need a single
revision' error [1] caused by a conflict of submodule versions,
the standard 'actions/checkout' action fails with this error. It's a
well-known problem and related issue [2] is still opened.

[1] tarantool/tarantool-qa#145
[2] actions/checkout#418

NO_DOC=ci
NO_TEST=ci
NO_CHANGELOG=ci

Closes tarantool/tarantool-qa#145
  • Loading branch information
artembo committed Jun 1, 2022
1 parent 0eac13b commit 3e53e55
Show file tree
Hide file tree
Showing 48 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/centos_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/centos_7_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/centos_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/centos_8_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- name: Sources checkout
uses: actions/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debian_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debian_10_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debian_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debian_11_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debian_9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- name: Sources checkout
uses: actions/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debug_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/default_gcc_centos_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fedora_34.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fedora_34_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fedora_35.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fedora_35_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fedora_36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fedora_36_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/freebsd-12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: freebsd-12-mcs

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/freebsd-13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: freebsd-13-mcs

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand All @@ -69,6 +70,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
# We don't need neither deep fetch, nor submodules here.
- uses: actions/[email protected]
# Don't use actions/setup-python to don't bother with proper
Expand All @@ -95,6 +97,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/memtx_allocator_based_on_malloc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/opensuse_15_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/opensuse_15_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/osx_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: macos-11

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/osx_11_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: macos-11-m1

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/osx_11_aarch64_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: macos-11-m1

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/osx_11_lto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: macos-11

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/osx_12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: macos-12

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/out_of_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_asan_clang11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_lto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_lto_clang11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static_build_cmake_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: ubuntu-20.04-self-hosted

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static_build_cmake_osx_15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
runs-on: macos-10.15

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_16_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_18_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_20_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_20_04_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_21_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_21_10_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_22_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
build-type: [ '', 'gc64' ]

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_22_04_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
runs-on: graviton

steps:
- uses: tarantool/actions/cleanup@master
- uses: actions/[email protected]
with:
fetch-depth: 0
Expand Down

0 comments on commit 3e53e55

Please sign in to comment.