[backport v2.1] deps: update tar-rs to handle very large uid/gid in image unpack #3768
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: ["**", "stable/**"] | |
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ] | |
pull_request: | |
branches: ["**", "stable/**"] | |
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ] | |
schedule: | |
# Run daily sanity check at 23:08 clock UTC | |
- cron: "8 23 * * *" | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
contrib-ut: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [1.17.x, 1.18.x] | |
env: | |
DOCKER: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: cache go mod | |
uses: actions/cache@v2 | |
with: | |
path: /go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/contrib/nydusify/go.sum', '**/contrib/ctr-remote/go.sum', '**/contrib/docker-nydus-graphdriver/go.sum', '**/contrib/nydus-overlayfs/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go | |
- name: test contrib UT | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.49.0 | |
make contrib-test | |
smoke: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Nydus | |
uses: Swatinem/rust-cache@v1 | |
with: | |
target-dir: | | |
./target | |
cache-on-failure: true | |
key: ${{ runner.os }}-cargo-amd64 | |
- name: Cache Docker Layers | |
uses: satackey/[email protected] | |
# Ignore the failure of a step and avoid terminating the job. | |
continue-on-error: true | |
- name: Smoke Test | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.49.0 | |
echo Cargo Home: $CARGO_HOME | |
echo Running User: $(whoami) | |
make docker-smoke | |
sudo chown -R $(id -un):$(id -gn) . ~/.cargo/ | |
macos-ut: | |
runs-on: macos-11 | |
strategy: | |
matrix: | |
arch: [amd64, arm64] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build and check | |
run: | | |
rustup component add rustfmt && rustup component add clippy | |
make | |
make ut | |
deny: | |
name: Cargo Deny | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: EmbarkStudios/cargo-deny-action@v1 |