Skip to content

Commit

Permalink
Rust build cache, fix asset path
Browse files Browse the repository at this point in the history
  • Loading branch information
evik42 committed Jun 21, 2023
1 parent 1b5e79c commit 99689b5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/binaries-x86-64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
command: tree
args: --locked

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Install openssl ( Windows only )
if: runner.os == 'Windows'
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
command: tree
args: --locked

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Install openssl ( Windows only )
if: runner.os == 'Windows'
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
command: tree
args: --locked

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Check formatting
uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions goth_tests/e2e/vm/test_e2e_rule_partner_outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async def test_e2e_rule_partner_outbound(
"name": "VM-Wasm-Provider",
"class": "goth.runner.probe.ProviderProbe",
"mount": [
{"read-only": "provider/presets.json", "destination": "/root/.local/share/ya-provider/presets.json"},
{"read-only": "provider/hardware.json", "destination": "/root/.local/share/ya-provider/hardware.json"},
{"read-only": "assets/provider/presets.json", "destination": "/root/.local/share/ya-provider/presets.json"},
{"read-only": "assets/provider/hardware.json", "destination": "/root/.local/share/ya-provider/hardware.json"},
{"read-write": "~/.local/share/ya-provider/vm-images", "destination": "/root/.local/share/ya-provider/exe-unit/cache"},
{"read-write": f"{assets_root}/test_e2e_rule_partner_outbound/provider/cert-dir", "destination": "/root/.local/share/ya-provider/cert-dir"},
{"read-write": f"{assets_root}/test_e2e_rule_partner_outbound/provider/rules.json", "destination": "/root/.local/share/ya-provider/rules.json"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async def test_e2e_rule_partner_outbound_unrestricted(
"name": "VM-Wasm-Provider",
"class": "goth.runner.probe.ProviderProbe",
"mount": [
{"read-only": "provider/presets.json", "destination": "/root/.local/share/ya-provider/presets.json"},
{"read-only": "provider/hardware.json", "destination": "/root/.local/share/ya-provider/hardware.json"},
{"read-only": "assets/provider/presets.json", "destination": "/root/.local/share/ya-provider/presets.json"},
{"read-only": "assets/provider/hardware.json", "destination": "/root/.local/share/ya-provider/hardware.json"},
{"read-write": "~/.local/share/ya-provider/vm-images", "destination": "/root/.local/share/ya-provider/exe-unit/cache"},
{"read-write": f"{assets_root}/test_e2e_rule_partner_outbound/provider/cert-dir", "destination": "/root/.local/share/ya-provider/cert-dir"},
{"read-write": f"{assets_root}/test_e2e_rule_partner_outbound/provider/rules.json", "destination": "/root/.local/share/ya-provider/rules.json"},
Expand Down

0 comments on commit 99689b5

Please sign in to comment.