aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows
diff options
context:
space:
mode:
authordavid <[email protected]>2026-10-30 19:02:28 -0300
committerdavid <[email protected]>2026-10-30 19:02:28 -0300
commit7519b719ba1f1872ea451fcb5736de975e64ad6f (patch)
tree69981f03f1af6f060bcd08accfdb654494222ddf /.gitea/workflows
parentbfb4b6513fac5ee67abd8f2859c53ac77c0a15ab (diff)
downloadmikusays-c-7519b719ba1f1872ea451fcb5736de975e64ad6f.tar.gz
mikusays-c-7519b719ba1f1872ea451fcb5736de975e64ad6f.zip
edited workflows so it's gitea now. this is release 1.1 ! ! !!! !v1.1.0
Diffstat (limited to '.gitea/workflows')
-rw-r--r--.gitea/workflows/ci.yml14
-rw-r--r--.gitea/workflows/release.yml71
2 files changed, 85 insertions, 0 deletions
diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
new file mode 100644
index 0000000..6a31efe
--- /dev/null
+++ b/.gitea/workflows/ci.yml
@@ -0,0 +1,14 @@
+name: ci
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+
+jobs:
+ linux:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - run: ./configure && make
+ - run: ./mikusays -V && ./mikusays "hi"
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml
new file mode 100644
index 0000000..12ab226
--- /dev/null
+++ b/.gitea/workflows/release.yml
@@ -0,0 +1,71 @@
+name: release
+
+on:
+ push:
+ tags: ["v*"]
+
+jobs:
+ # builds the source tarball (configure included) and checks tag == configure.ac version
+ dist:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: install autotools
+ run: sudo apt-get update && sudo apt-get install -y autoconf automake
+ - run: autoreconf -fi
+ - run: touch configure configure.ac aclocal.m4 Makefile.in
+ - name: tag must match version in configure.ac
+ run: |
+ ver=$(./configure --version | head -1 | awk '{print $NF}')
+ test "v$ver" = "$GITHUB_REF_NAME"
+ - run: ./configure && make distcheck
+ - uses: actions/upload-artifact@v3
+ with:
+ name: dist
+ path: mikusays-*.tar.gz
+
+ # linux binary, built from the tarball (so it tests what packagers get)
+ build:
+ needs: dist
+ runs-on: ubuntu-latest
+ steps:
+ - name: install compiler
+ run: sudo apt-get update && sudo apt-get install -y build-essential
+ - uses: actions/download-artifact@v3
+ with:
+ name: dist
+ - name: build and package
+ run: |
+ VERSION=${GITHUB_REF_NAME#v}
+ tar xf mikusays-$VERSION.tar.gz
+ cd mikusays-$VERSION
+ ./configure LDFLAGS="-static"
+ make
+ strip mikusays
+ ./mikusays -V
+ ./mikusays "hi" > /dev/null
+ out=mikusays-$VERSION-linux-x86_64
+ mkdir "$out"
+ cp mikusays LICENSE README.md "$out"/
+ tar czf ../"$out".tar.gz "$out"
+ - uses: actions/upload-artifact@v3
+ with:
+ name: bin-linux-x86_64
+ path: mikusays-*-linux-x86_64.tar.gz
+
+ release:
+ needs: [dist, build]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ path: artifacts
+ - name: checksums
+ run: |
+ cd artifacts
+ find . -mindepth 2 -type f -exec mv {} . \;
+ find . -type d -empty -delete
+ sha256sum * > SHA256SUMS
+ - uses: akkuman/gitea-release-action@v1
+ with:
+ files: artifacts/*