From 695d20a524dcb252bba74e3ca22860f5dcc10978 Mon Sep 17 00:00:00 2001 From: amy null Date: Tue, 18 Apr 2023 16:12:40 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20wip:=20Release=20actions!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 31 +++++++++++++++++++ .gitignore | 1 + peckish.yaml | 59 ++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 peckish.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..142286a --- /dev/null +++ b/.github/workflows/build.yaml @@ -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" diff --git a/.gitignore b/.gitignore index 1eb7f05..1729274 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /boxxy-report.txt /boxxy-dev.yaml /.env +/release diff --git a/peckish.yaml b/peckish.yaml new file mode 100644 index 0000000..78ecf3a --- /dev/null +++ b/peckish.yaml @@ -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"