CI: symlink sb-common as sibling of workspace (include_str! paths resolve relative to sb-core sources)
All checks were successful
build / build-test (push) Successful in 48s
All checks were successful
build / build-test (push) Successful in 48s
This commit is contained in:
parent
6d5491e176
commit
65a765e7af
1 changed files with 8 additions and 3 deletions
|
|
@ -10,10 +10,15 @@ jobs:
|
|||
- name: Checkout
|
||||
run: git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git .
|
||||
|
||||
# sb-common is a path dependency pinned to this absolute path
|
||||
# (see crates/*/Cargo.toml); clone it there before building.
|
||||
# sb-common is referenced two ways: as a path dependency pinned to
|
||||
# /home/jan/Development/skara-brae/skara-brae-common (crates/*/Cargo.toml)
|
||||
# and via include_str! sibling paths (crates/sb-core/src). Clone once,
|
||||
# symlink for the include_str layout.
|
||||
- name: Checkout sb-common
|
||||
run: mkdir -p /home/jan/Development/skara-brae && git clone --depth 1 ${{ github.server_url }}/jan/skara-brae-common.git /home/jan/Development/skara-brae/skara-brae-common
|
||||
run: |
|
||||
mkdir -p /home/jan/Development/skara-brae
|
||||
git clone --depth 1 ${{ github.server_url }}/jan/skara-brae-common.git /home/jan/Development/skara-brae/skara-brae-common
|
||||
ln -s /home/jan/Development/skara-brae/skara-brae-common "$GITHUB_WORKSPACE/../skara-brae-common"
|
||||
|
||||
- name: Build
|
||||
run: cargo build --workspace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue