This commit is contained in:
Vomitblood 2024-03-25 12:52:40 +08:00
parent 9ea0055067
commit 2fce15e7f6
3 changed files with 47 additions and 1 deletions

44
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-arch:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pacman -Syu --noconfirm base-devel rust
- name: Build Arch package
run: makepkg -sf --noconfirm
- name: Upload Arch package
uses: actions/upload-artifact@v2
with:
name: pokerust.pkg.tar.zst
path: ./*.pkg.tar.zst
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y dpkg-dev
- name: Build Debian package
run: ./build/debian.sh
- name: Upload Debian package
uses: actions/upload-artifact@v2
with:
name: pokerust.deb
path: ./build/debian/pokerust.deb

View file

@ -1,7 +1,7 @@
pkgname=pokerust-git
pkgdesc="Pokemon Colorscripts written in Rust"
_gitname=pokerust
pkgver=r5.7fe497e
pkgver=r8.c1e2b64
pkgrel=1
arch=('x86_64')
url="https://github.com/Vomitblood/$_gitname"

View file

@ -1,5 +1,7 @@
#!/bin/sh
# TODO: check for rust dependency
# create a directory structure that mirrors tha final structure of the installed package
mkdir -p pokerust/DEBIAN
mkdir -p pokerust/usr/bin