Skip to content

Commit

Permalink
Merge pull request #27 from k9withabone/v0.2.1
Browse files Browse the repository at this point in the history
v0.2.1
  • Loading branch information
k9withabone authored Nov 28, 2023
2 parents 1e66cdf + 4df270f commit e1aad67
Show file tree
Hide file tree
Showing 19 changed files with 1,364 additions and 761 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: CI

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --verbose --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -Dwarnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo test --verbose

build-container:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

# From https://podman.io/docs/installation#ubuntu
# There is a bug in earlier versions of buildah/podman where the TARGETPLATFORM arg is not set correctly
- name: Upgrade podman
run: |
sudo mkdir -p /etc/apt/keyrings && \
curl -fsSL \
"https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_22.04/Release.key" \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_22.04/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null && \
sudo apt update && \
sudo apt install -y podman
- run: podman version

- name: Build ARM image
run: podman build --platform linux/arm64/v8 -t podlet .

- name: Build x86 image
run: podman build --platform linux/amd64 -t podlet .

- name: Test run image
run: podman run localhost/podlet -h
39 changes: 0 additions & 39 deletions .github/workflows/format-clippy-test.yaml

This file was deleted.

Loading

0 comments on commit e1aad67

Please sign in to comment.