Skip to content

Commit

Permalink
action: chown build results
Browse files Browse the repository at this point in the history
So that the cache actions can actually work.

Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
bergwolf committed Mar 11, 2022
1 parent d9eff66 commit b1c3792
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
echo Cargo Home: $CARGO_HOME
echo Running User: $(whoami)
make docker-smoke
sudo chown -R $(id -un):$(id -gn) . ~/.cargo/
deny:
name: Cargo Deny
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Cache cargo
uses: actions/cache@v2
uses: Swatinem/rust-cache@v1
with:
path: |
~/.cargo/registry
~/.cargo/git
target-fusedev
target-virtiofs
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo
target-dir: ./target-fusedev
cache-on-failure: true
- name: Build nydus-rs
run: |
make docker-static
Expand All @@ -35,7 +29,7 @@ jobs:
sudo mv target-fusedev/x86_64-unknown-linux-musl/release/nydusctl .
sudo mv target-virtiofs/x86_64-unknown-linux-musl/release/nydusd nydusd-virtiofs
sudo cp -r misc/configs .
sudo chown -R $(id -un):$(id -gn) .
sudo chown -R $(id -un):$(id -gn) . ~/.cargo/
- name: store-artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ docker-nydus-smoke:
docker build -t nydus-smoke --build-arg ARCH=${ARCH} misc/nydus-smoke
docker run --rm --privileged ${CARGO_BUILD_GEARS} \
-e TEST_WORKDIR_PREFIX=$(TEST_WORKDIR_PREFIX) \
-v ~/.cargo:/root/.cargo \
-v $(TEST_WORKDIR_PREFIX) \
-v ${current_dir}:/nydus-rs \
nydus-smoke
Expand Down

0 comments on commit b1c3792

Please sign in to comment.