build(deps): bump oci-spec from 0.6.3 to 0.6.4 #249
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: "Function: CLI" | |
on: | |
push: | |
branches: | |
- "mistress" | |
paths: | |
- "**.rs" | |
- "**.yaml" | |
- "**.toml" | |
pull_request: | |
branches: | |
- "mistress" | |
paths: | |
- "**.rs" | |
- "**.yaml" | |
- "**.toml" | |
jobs: | |
function-cli: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v2" | |
- name: "Install latest stable Rust" | |
uses: "actions-rs/toolchain@v1" | |
with: | |
toolchain: "stable" | |
profile: "minimal" | |
target: "x86_64-unknown-linux-musl" | |
- uses: "Swatinem/rust-cache@v2" | |
with: | |
key: "cli-functionality" | |
cache-on-failure: true | |
- name: "Install musl-tools" | |
run: "sudo apt-get update && sudo apt-get install -y musl-tools comerr-dev wget" | |
- name: "Build release binary!" | |
uses: "actions-rs/cargo@v1" | |
with: | |
command: "build" | |
args: "--release --target=x86_64-unknown-linux-musl" | |
- name: "Run release binary" | |
run: "env RUST_LOG=debug ./target/x86_64-unknown-linux-musl/release/peckish -c ./peckish.ci.yaml" | |
- name: "Validate release binary" | |
run: "file release/peckish | grep -q 'ELF 64-bit LSB pie executable, x86-64'" | |
- name: "Validate Arch package" | |
run: 'docker run --rm -i -v "$(pwd)/release/peckish.arch.pkg.tar:/app/peckish.pkg.tar" archlinux:latest sh -c "pacman --noconfirm -U /app/peckish.pkg.tar && peckish --version"' | |
- name: "Validate Debian package on Debian" | |
run: 'docker run --rm -i -v "$(pwd)/release/peckish.deb:/app/peckish.deb" debian:latest sh -c "dpkg -i /app/peckish.deb && peckish --version"' | |
- name: "Validate Debian package on Ubuntu" | |
run: 'docker run --rm -i -v "$(pwd)/release/peckish.deb:/app/peckish.deb" ubuntu:latest sh -c "dpkg -i /app/peckish.deb && peckish --version"' | |
- name: "Validate tarball" | |
run: "tar t -vf ./release/peckish.tar" | |
- name: "Validate Docker image" | |
run: "docker run --rm queer/peckish:latest peckish --version" | |
- name: "Validate RPM package on Fedora" | |
run: 'docker run --rm -i -v "$(pwd)/release/peckish.rpm:/app/peckish.rpm" fedora:latest sh -c "rpm -i /app/peckish.rpm && peckish --version"' |