Skip to content

Commit

Permalink
🚧 wip: Release actions!
Browse files Browse the repository at this point in the history
  • Loading branch information
queer committed Apr 18, 2023
1 parent aef4f4a commit 695d20a
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Ensure packages build"
on:
push:
branches:
- "mistress"
paths:
- "**.rs"
- "**.toml"
pull_request:
branches:
- "mistress"
paths:
- "**.rs"
- "**.toml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v2"
- name: "Install latest stable Rust"
uses: "actions-rs/toolchain@v1"
with:
toolchain: "${{ matrix.version }}"
override: true
- uses: "Swatinem/rust-cache@v1"
with:
key: "tests"
- uses: "queer/actions/peckish_install@mistress"
- name: "Build debug binary"
run: "cargo build"
- uses: "queer/actions/peckish_run@mistress"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/boxxy-report.txt
/boxxy-dev.yaml
/.env
/release
59 changes: 59 additions & 0 deletions peckish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pipeline: false

metadata:
name: "boxxy"
version: "0.6.3-1"
description: "boxxy puts bad Linux applications in a box!"
author: "amy"
arch: "amd64"
license: "Apache-2.0"

input:
name: "boxxy release binary"
type: "file"
paths:
- "./target/debug/boxxy"

output:
- name: "boxxy release binary"
type: "tarball"
path: "./release/boxxy.tar"
injections:
- type: "move"
src: "/target/debug/boxxy"
dest: "/boxxy"

- name: "boxxy arch package"
type: "arch"
path: "./release/boxxy.arch.pkg.tar"
injections:
- type: "move"
src: "/target/debug/boxxy"
dest: "/usr/bin/boxxy"
- type: "delete"
path: "/target"

- name: "boxxy debian package"
type: "deb"
path: "./release/boxxy.deb"
depends: "libc6"
injections:
- type: "move"
src: "/target/debug/boxxy"
dest: "/usr/bin/boxxy"

- name: "boxxy release binary"
type: "file"
path: "./release"
injections:
- type: "move"
src: "/target/debug/boxxy"
dest: "/"

- name: "boxxy rpm package"
type: "rpm"
path: "./release/boxxy.rpm"
injections:
- type: "move"
src: "/target/debug/boxxy"
dest: "/usr/bin/boxxy"

0 comments on commit 695d20a

Please sign in to comment.