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:
parent
87fd914c94
commit
78916beb1a
12
.github/workflows/build-test.yml
vendored
12
.github/workflows/build-test.yml
vendored
@ -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
|
||||
|
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -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:
|
||||
|
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user