refactor: re-implement the slight shim with libcontainer instance #275
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: | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
"containerd-shim-*-v1 -> target" | |
- name: "Install Rust Wasm targets" | |
run: | | |
make install-rust-targets | |
- name: "Install dependencies" | |
run: | | |
sudo apt-get update | |
sudo apt-get install protobuf-compiler -y | |
- name: fmt | |
run: | | |
make fmt | |
build: | |
uses: ./.github/workflows/build.yaml | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
ARCH: x86_64 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Extract containerd-wasm-shims-v1-linux-${{ env.ARCH }} | |
run: | | |
mkdir -p ./bin | |
tar -xzf containerd-wasm-shims-v1-linux-${{ env.ARCH }}/containerd-wasm-shims-v1-linux-${{ env.ARCH }}.tar.gz -C ./bin | |
- name: install k3d | |
run: make install-k3d | |
working-directory: ./deployments/k3d | |
- name: run integration tests | |
run: BIN_DIR="./bin" make integration-tests | |
- name: clean up k3d | |
if: always() | |
run: make test/clean |