Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 78916be

Browse files
Andronik OrdianGeneral-Beck
andauthored
ci: workaround for the cache bug on Linux (#11568)
* ci: workaround for the cache bug * ci: use the workaround only for linux * cleanup * REVERTME: invalidate cache * test I * test II * simplify checkout * try bash on windows * fix checkout * sudo bash? * ok, I don't have time for this sh*t * revert Cargo.lock change * Test rules for .cargo in windows-latest * update rules * Get Acl * new path to windows cargo home https://github.com/actions/virtual-environments/blob/7584c7b8793620167c46cd587f35c46520b5f26e/images/win/scripts/Installers/Install-Rust.ps1#L10 * Set-ExecutionPolicy * Test * another experiment * another experiment II * revert temp changes Co-authored-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com>
1 parent 87fd914 commit 78916be

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

.github/workflows/build-test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ jobs:
2020
runs-on: ${{ matrix.platform }}
2121
steps:
2222
- name: Checkout sources
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@master
2424
with:
25-
fetch-depth: 50
26-
- name: Checkout submodules
27-
shell: bash
28-
run: git submodule update --init --recursive
25+
submodules: true
26+
# https://github.com/actions/cache/issues/133
27+
- name: Fixup the owner of ~/.cargo/
28+
if: matrix.platform == 'ubuntu-16.04'
29+
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
2930
- name: Install toolchain
3031
uses: actions-rs/toolchain@v1
3132
with:
3233
toolchain: ${{ matrix.toolchain }}
34+
profile: minimal
3335
override: true
3436
- name: Cache cargo registry
3537
uses: actions/cache@v1.1.2

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
runs-on: ${{ matrix.platform }}
2222
steps:
2323
- name: Checkout sources
24-
uses: actions/checkout@v2
25-
with:
26-
fetch-depth: 50
24+
uses: actions/checkout@master
25+
# https://github.com/actions/cache/issues/133
26+
- name: Fixup the owner of ~/.cargo/
27+
if: matrix.platform == 'ubuntu-16.04'
28+
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
2729
- name: Install toolchain
2830
uses: actions-rs/toolchain@v1
2931
with:

.github/workflows/check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-16.04
1313
steps:
1414
- name: Checkout sources
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@master
1616
with:
17-
fetch-depth: 50
18-
- name: Checkout submodules
19-
shell: bash
20-
run: git submodule update --init --recursive
17+
submodules: true
18+
# https://github.com/actions/cache/issues/133
19+
- name: Fixup the owner of ~/.cargo/
20+
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
2121
- name: Install stable toolchain
2222
uses: actions-rs/toolchain@v1
2323
with:

0 commit comments

Comments
 (0)