-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: utam0k <[email protected]>
- Loading branch information
Showing
5 changed files
with
22 additions
and
74 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 |
---|---|---|
|
@@ -19,12 +19,8 @@ jobs: | |
sudo apt -y update | ||
sudo apt install libsystemd-dev librust-libdbus-sys-dev libseccomp-dev | ||
- name: Setting rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
|
||
- name: Building PR branch | ||
run: make youki-release | ||
|
@@ -51,12 +47,8 @@ jobs: | |
sudo apt -y update | ||
sudo apt install libsystemd-dev librust-libdbus-sys-dev libseccomp-dev | ||
- name: Setting rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
|
||
- name: Building main branch | ||
run: make youki-release | ||
|
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 |
---|---|---|
|
@@ -12,12 +12,8 @@ jobs: | |
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: '1.67.0' | ||
override: true | ||
- name: Cache youki | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev | ||
- name: Build youki | ||
|
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 |
---|---|---|
|
@@ -24,17 +24,10 @@ jobs: | |
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }} | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
rust: [1.66.0, 1.67.0] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Cache youki | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev | ||
- name: Install runc 1.1.0 | ||
|
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 |
---|---|---|
|
@@ -31,16 +31,11 @@ jobs: | |
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
rust: [1.66.0, 1.67.0] | ||
dirs: ${{ fromJSON(needs.changes.outputs.dirs) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Cache youki | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- run: rustup component add rustfmt clippy | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev | ||
|
@@ -53,17 +48,10 @@ jobs: | |
tests: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
rust: [1.66.0, 1.67.0] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Cache youki | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Install rus | ||
run: rustup show | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev | ||
- name: Run tests | ||
|
@@ -76,15 +64,8 @@ jobs: | |
name: Run test coverage | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Toolchain setup | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.67.0 | ||
override: true | ||
profile: minimal | ||
components: llvm-tools-preview | ||
- name: Cache youki | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- name: install cargo-llvm-cov | ||
uses: taiki-e/install-action@v1 | ||
with: | ||
|
@@ -105,19 +86,12 @@ jobs: | |
integration_tests: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
rust: [1.66.0, 1.67.0] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Cache youki | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev | ||
- uses: actions/setup-go@v2 | ||
|
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 |
---|---|---|
|
@@ -15,10 +15,8 @@ jobs: | |
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev libclang-dev | ||
- name: Set up cargo | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- name: Build | ||
run: make youki-release | ||
- name: test | ||
|
@@ -33,10 +31,8 @@ jobs: | |
- run: sudo apt-get -y update | ||
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev | ||
- name: Set up cargo | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- name: Release build | ||
run: make youki-release | ||
- name: Create output directory | ||
|
@@ -104,11 +100,8 @@ jobs: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up cargo | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Setup Rust toolchain and cache | ||
uses: actions-rust-lang/[email protected] | ||
- name: Publish libcgroups | ||
run: cargo publish -p libcgroups --no-verify | ||
- name: Publish libcontainer | ||
|