3 Commits

Author SHA1 Message Date
klemek 9426f4267b margen v1.2.4 2025-08-20 09:14:19 +00:00
klemek bb82ae6458 feat: Github CI (#12)
* feat: Github CI

* add verbose to gcc

* reorder jobs

* add extra warnings and small fix
2025-08-20 11:10:08 +02:00
klemek 70c2f02b0b update release guide 2025-08-20 08:42:08 +00:00
7 changed files with 47 additions and 9 deletions
+33
View File
@@ -0,0 +1,33 @@
name: C-lang CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gcc
run: mkdir -p build && gcc -v -Wall -Wextra -Werror src/*.c src/*.h -lm
build-release:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: aclocal
run: aclocal
- name: autoconf
run: autoconf
- name: automake
run: automake --add-missing
- name: configure
run: ./configure
- name: make
run: make
- name: make distcheck
run: make distcheck
+2
View File
@@ -7,6 +7,8 @@ build
Makefile
*.log
*.o
*.h.gch
*.out
.dirstamp
aclocal.m4
compile
+1 -1
View File
@@ -9,7 +9,7 @@ clean:
build:
@mkdir -p build
gcc -Wall src/*.c src/*.h -lm -o build/$(TARGET)
gcc -v -Wall -Wextra src/*.c src/*.h -lm -o build/$(TARGET)
.PHONY: install
install: build
+2 -2
View File
@@ -1,11 +1,11 @@
pkgname=margen
pkgver=1.2.3
pkgver=1.2.4
pkgrel=1
pkgdesc="Generate a marble-like pattern bitmap image, blazing fast."
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
url="https://github.com/klemek/margen"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/klemek/margen/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('6922843b9cd1bcbca1dc65ca2cac1e4bf590487e77a06e21969a3432dc74963b')
sha256sums=('38fc6a66be97f6f77f9dffdbf75c214c7aa3ee8d1600b28506e943e6bfb93870')
srcdir=build
build() {
+7 -4
View File
@@ -70,18 +70,21 @@ options:
## Release guide
```bash
# get latest version
git pull origin master
# update configure.ac with new version
$EDITOR configure.ac
# make full build
make -f Makefile.dev release
# update PKGBUILD with new version and sha256 sum
sha256sum margen-x.y.z.tar.gz
$EDITOR PKGBUILD
# push to repo
git commit -am "margen vX.Y.Z"
git tag vX.Y.Z
git push origin master --tags
# create release from tag on github
# update PKGBUILD with new sha256 sum
sha256sum margen-x.y.z.tar.gz
# attach .tar.gz to the github release
make -f Makefile.dev release-arch
git commit -am "update arch sha256"
# add .pkg.tar.zst on the release
# attach .pkg.tar.zst to the github release
```
+1 -1
View File
@@ -1,4 +1,4 @@
AC_INIT([margen], [1.2.3], [klemek.dev@proton.me])
AC_INIT([margen], [1.2.4], [klemek.dev@proton.me])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_CHECK_HEADERS([stdio.h])
+1 -1
View File
@@ -68,7 +68,7 @@ bool is_number(char *value) {
return false;
}
unsigned long value_len = strlen(value);
int i;
unsigned int i;
for (i = 0; i < value_len; i++) {
if (!is_digit(value[i])) {
return false;