Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9426f4267b | |||
| bb82ae6458 | |||
| 70c2f02b0b |
@@ -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
|
||||
@@ -7,6 +7,8 @@ build
|
||||
Makefile
|
||||
*.log
|
||||
*.o
|
||||
*.h.gch
|
||||
*.out
|
||||
.dirstamp
|
||||
aclocal.m4
|
||||
compile
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user