Compare commits
3 Commits
9ce2417528
...
d23227dd0b
| Author | SHA1 | Date |
|---|---|---|
|
|
d23227dd0b | |
|
|
d3cb29b52e | |
|
|
3cddea19c3 |
|
|
@ -1,37 +0,0 @@
|
||||||
matrix:
|
|
||||||
PLATFORM:
|
|
||||||
- 'linux/amd64'
|
|
||||||
# - linux/arm64
|
|
||||||
|
|
||||||
labels:
|
|
||||||
platform: ${PLATFORM}
|
|
||||||
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
skip_clone: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
build:
|
|
||||||
image: 'menci/archlinuxarm:base-devel'
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- echo -e '[bur]\nServer = https://arch.r8r.be/$repo/$arch\nSigLevel = Optional' >> /etc/pacman.conf
|
|
||||||
# Update packages
|
|
||||||
- pacman -Syu --noconfirm
|
|
||||||
# Create non-root user to perform build & switch to their home
|
|
||||||
- groupadd -g 1000 builder
|
|
||||||
- useradd -mg builder builder
|
|
||||||
- chown -R builder:builder "$PWD"
|
|
||||||
- "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
|
||||||
- su builder
|
|
||||||
- curl -OL "https://git.rustybever.be/Chewing_Bever/alex/raw/tag/$CI_COMMIT_TAG/PKGBUILD"
|
|
||||||
- makepkg -s --noconfirm --needed
|
|
||||||
|
|
||||||
publish:
|
|
||||||
image: 'curlimages/curl'
|
|
||||||
commands:
|
|
||||||
# Publish the package
|
|
||||||
- 'for pkg in $(ls -1 *.pkg*); do curl -XPOST -T "$pkg" -H "X-API-KEY: $VIETER_API_KEY" https://arch.r8r.be/bur/publish; done'
|
|
||||||
secrets:
|
|
||||||
- vieter_api_key
|
|
||||||
|
|
@ -3,8 +3,7 @@ matrix:
|
||||||
- 'amd64'
|
- 'amd64'
|
||||||
- 'arm64'
|
- 'arm64'
|
||||||
|
|
||||||
labels:
|
platform: "linux/${ARCH}"
|
||||||
platform: "linux/${ARCH}"
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
labels:
|
platform: 'linux/amd64'
|
||||||
platform: 'linux/amd64'
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
labels:
|
platform: 'linux/amd64'
|
||||||
platform: 'linux/amd64'
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@ matrix:
|
||||||
- 'linux/amd64'
|
- 'linux/amd64'
|
||||||
- 'linux/arm64'
|
- 'linux/arm64'
|
||||||
|
|
||||||
labels:
|
platform: ${PLATFORM}
|
||||||
platform: ${PLATFORM}
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased](https://git.rustybever.be/Chewing_Bever/alex/src/branch/dev)
|
## [Unreleased](https://git.rustybever.be/Chewing_Bever/alex/src/branch/dev)
|
||||||
|
|
||||||
|
## [0.4.1](https://git.rustybever.be/Chewing_Bever/alex/src/tag/0.4.1)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Moved PKGBUILD to separate repo
|
||||||
|
* Properly update lock file
|
||||||
|
|
||||||
## [0.4.0](https://git.rustybever.be/Chewing_Bever/alex/src/tag/0.4.0)
|
## [0.4.0](https://git.rustybever.be/Chewing_Bever/alex/src/tag/0.4.0)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "alex"
|
name = "alex"
|
||||||
version = "0.3.1"
|
version = "0.4.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "alex"
|
name = "alex"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
description = "Wrapper around Minecraft server processes, designed to complement Docker image installations."
|
description = "Wrapper around Minecraft server processes, designed to complement Docker image installations."
|
||||||
authors = ["Jef Roosens"]
|
authors = ["Jef Roosens"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
|
||||||
42
PKGBUILD
42
PKGBUILD
|
|
@ -1,42 +0,0 @@
|
||||||
# Maintainer: Jef Roosens
|
|
||||||
|
|
||||||
pkgname='alex'
|
|
||||||
pkgver=0.3.1
|
|
||||||
pkgdesc='Wrapper around Minecraft server processes, designed to complement Docker image installations.'
|
|
||||||
pkgrel=1
|
|
||||||
arch=('x86_64' 'aarch64')
|
|
||||||
|
|
||||||
url='https://git.rustybever.be/Chewing_Bever/alex'
|
|
||||||
license=('MIT')
|
|
||||||
|
|
||||||
makedepends=('cargo')
|
|
||||||
depends=('glibc' 'gcc-libs' )
|
|
||||||
|
|
||||||
source=("${pkgname}-${pkgver}.tar.gz::https://git.rustybever.be/Chewing_Bever/alex/archive/${pkgver}.tar.gz")
|
|
||||||
sha512sums=('f88903bd99397f3e9a1c4a40febc65eace0d594cde8de20d54ed1cd0597512152111e7a20acaaa971309d5afe1ea267c7ef3b08f0d803237e8004808a83752c5')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "${pkgname}"
|
|
||||||
|
|
||||||
export RUSTUP_TOOLCHAIN=stable
|
|
||||||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "${pkgname}"
|
|
||||||
|
|
||||||
export RUSTUP_TOOLCHAIN=stable
|
|
||||||
export CARGO_TARGET_DIR=target
|
|
||||||
cargo build --frozen --release --all-features
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "${pkgname}"
|
|
||||||
|
|
||||||
export RUSTUP_TOOLCHAIN=stable
|
|
||||||
cargo test --frozen --all-features
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
install -Dm0755 -t "${pkgdir}/usr/bin/" "${pkgname}/target/release/${pkgname}"
|
|
||||||
}
|
|
||||||
14
README.md
14
README.md
|
|
@ -11,6 +11,20 @@ Alex is distributed as statically compiled binaries for Linux amd64 and arm64.
|
||||||
These can be found
|
These can be found
|
||||||
[here](https://git.rustybever.be/Chewing_Bever/alex/packages).
|
[here](https://git.rustybever.be/Chewing_Bever/alex/packages).
|
||||||
|
|
||||||
|
### Arch
|
||||||
|
|
||||||
|
Arch users can install prebuilt `x86_64` & `aarch64` packages from my `bur`
|
||||||
|
repository. Add the following at the bottom of your `pacman.conf`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[bur]
|
||||||
|
Server = https://arch.r8r.be/$repo/$arch
|
||||||
|
SigLevel = Optional
|
||||||
|
```
|
||||||
|
|
||||||
|
If you prefer building the package yourself, the PKGBUILD can be found
|
||||||
|
[here](https://git.rustybever.be/bur/alex-mc).
|
||||||
|
|
||||||
### Dockerfiles
|
### Dockerfiles
|
||||||
|
|
||||||
You can easily install alex in your Docker images by letting Docker download it
|
You can easily install alex in your Docker images by letting Docker download it
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue