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

7584c7b879/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>
This commit is contained in:
Andronik Ordian 2020-03-21 15:01:10 +01:00 committed by GitHub
parent 87fd914c94
commit 78916beb1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 13 deletions

View File

@ -20,16 +20,18 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@master
with:
fetch-depth: 50
- name: Checkout submodules
shell: bash
run: git submodule update --init --recursive
submodules: true
# https://github.com/actions/cache/issues/133
- name: Fixup the owner of ~/.cargo/
if: matrix.platform == 'ubuntu-16.04'
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true
- name: Cache cargo registry
uses: actions/cache@v1.1.2

View File

@ -21,9 +21,11 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 50
uses: actions/checkout@master
# https://github.com/actions/cache/issues/133
- name: Fixup the owner of ~/.cargo/
if: matrix.platform == 'ubuntu-16.04'
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:

View File

@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-16.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@master
with:
fetch-depth: 50
- name: Checkout submodules
shell: bash
run: git submodule update --init --recursive
submodules: true
# https://github.com/actions/cache/issues/133
- name: Fixup the owner of ~/.cargo/
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with: