forked from youki-dev/youki
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'containers:main' into main
- Loading branch information
Showing
20 changed files
with
151 additions
and
129 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
outputs: | ||
any_modified: ${{ steps.filter.outputs.any_modified }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@v41 | ||
id: filter | ||
with: | ||
|
@@ -40,7 +40,7 @@ jobs: | |
arch: [ "x86_64", "aarch64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
|
@@ -70,7 +70,7 @@ jobs: | |
arch: [ "x86_64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install just | ||
|
@@ -86,31 +86,34 @@ jobs: | |
- name: Run feature tests | ||
run: just test-features | ||
|
||
coverage: | ||
needs: [changes] | ||
if: needs.changes.outputs.any_modified == 'true' | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 20 | ||
name: Run test coverage | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- name: Install llvm-tools-preview | ||
run: rustup component add llvm-tools-preview | ||
- name: install cargo-llvm-cov | ||
uses: taiki-e/install-action@v1 | ||
with: | ||
tool: [email protected] | ||
- uses: taiki-e/install-action@just | ||
- name: Install requirements | ||
run: sudo env PATH=$PATH just ci-prepare | ||
- name: Run Test Coverage for youki | ||
run: | | ||
cargo llvm-cov clean --workspace | ||
cargo llvm-cov --no-report -- --test-threads=1 | ||
cargo llvm-cov --no-run --lcov --output-path ./coverage.lcov | ||
- name: Upload Youki Code Coverage Results | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.lcov | ||
# We do not yet enforce some minimum coverage, and there were come codecov issues | ||
# so commenting this out for now. When we are ready to enforce coverage, uncomment | ||
# and check this works or not. | ||
# coverage: | ||
# needs: [changes] | ||
# if: needs.changes.outputs.any_modified == 'true' | ||
# runs-on: ubuntu-22.04 | ||
# timeout-minutes: 20 | ||
# name: Run test coverage | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Setup Rust toolchain and cache | ||
# uses: actions-rust-lang/[email protected] | ||
# - name: Install llvm-tools-preview | ||
# run: rustup component add llvm-tools-preview | ||
# - name: install cargo-llvm-cov | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: [email protected] | ||
# - uses: taiki-e/install-action@just | ||
# - name: Install requirements | ||
# run: sudo env PATH=$PATH just ci-prepare | ||
# - name: Run Test Coverage for youki | ||
# run: | | ||
# cargo llvm-cov clean --workspace | ||
# cargo llvm-cov --no-report -- --test-threads=1 | ||
# cargo llvm-cov --no-run --lcov --output-path ./coverage.lcov | ||
# - name: Upload Youki Code Coverage Results | ||
# uses: codecov/codecov-action@v4 | ||
# with: | ||
# file: ./coverage.lcov |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
arch: [ "x86_64", "aarch64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
env: | ||
|
@@ -34,7 +34,7 @@ jobs: | |
run: just youki-release | ||
- name: Upload youki binary | ||
if: ${{ matrix.arch == 'x86_64' }} | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: youki-${{ matrix.arch }}-${{ matrix.libc }} | ||
path: youki | ||
|
@@ -48,11 +48,11 @@ jobs: | |
arch: [ "x86_64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: containerd/containerd | ||
ref: v1.7.11 | ||
- uses: actions/setup-go@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20.12' | ||
cache: true | ||
|
@@ -66,7 +66,7 @@ jobs: | |
./script/setup/install-cni | ||
./script/setup/install-critools | ||
- name: Download youki binary | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: youki-${{ matrix.arch }}-${{ matrix.libc }} | ||
- name: Replace runc to youki | ||
|
@@ -87,9 +87,9 @@ jobs: | |
arch: [ "x86_64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Download youki binary | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: youki-${{ matrix.arch }}-${{ matrix.libc }} | ||
- name: Add the permission to run | ||
|
@@ -108,20 +108,20 @@ jobs: | |
arch: [ "x86_64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install just | ||
uses: taiki-e/install-action@just | ||
- uses: actions/setup-go@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
cache: true | ||
cache-dependency-path: tests/oci-runtime-tests/src/github.com/opencontainers/runtime-tools/go.sum | ||
- name: Download youki binary | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: youki-${{ matrix.arch }}-${{ matrix.libc }} | ||
- name: Add the permission to run | ||
|
@@ -138,7 +138,7 @@ jobs: | |
arch: [ "x86_64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup Rust toolchain and cache | ||
|
@@ -148,7 +148,7 @@ jobs: | |
- name: Install requirements | ||
run: sudo env PATH=$PATH just ci-prepare | ||
- name: Download youki binary | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: youki-${{ matrix.arch }}-${{ matrix.libc }} | ||
- name: Add the permission to run | ||
|
@@ -165,7 +165,7 @@ jobs: | |
arch: [ "x86_64" ] | ||
libc: [ "gnu", "musl" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup Rust toolchain and cache | ||
|
@@ -175,7 +175,7 @@ jobs: | |
- name: Install requirements | ||
run: sudo env PATH=$PATH just ci-prepare | ||
- name: Download youki binary | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: youki-${{ matrix.arch }}-${{ matrix.libc }} | ||
- name: Add the permission to run | ||
|
@@ -193,11 +193,11 @@ jobs: | |
# ubuntu 22.04 has cgroups-v2 | ||
os: [ "ubuntu-22.04", "ubuntu-20.04" ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install just | ||
uses: taiki-e/install-action@just | ||
- name: Download youki binary | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: youki-x86_64-musl | ||
- name: Add the permission to 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
outputs: | ||
any_modified: ${{ steps.filter.outputs.any_modified }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@v41 | ||
id: filter | ||
with: | ||
|
@@ -36,7 +36,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- name: Install just | ||
|
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
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
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
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
Oops, something went wrong.