aboutsummaryrefslogtreecommitdiff
path: root/.gitea
diff options
context:
space:
mode:
authordavid <[email protected]>2026-11-03 16:00:52 -0300
committerdavid <[email protected]>2026-11-03 16:00:52 -0300
commitdcbfd4c98b2dad64c161796b0ca62bdb8884c13d (patch)
treed80a200e1b93db80ef302cb3ac5946a7b6cb8aa9 /.gitea
parent7519b719ba1f1872ea451fcb5736de975e64ad6f (diff)
downloadmikusays-c-dcbfd4c98b2dad64c161796b0ca62bdb8884c13d.tar.gz
mikusays-c-dcbfd4c98b2dad64c161796b0ca62bdb8884c13d.zip
changed ci/cd a bitv1.1.2v1.1.1
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/ci.yml7
-rw-r--r--.gitea/workflows/release.yml33
2 files changed, 33 insertions, 7 deletions
diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
index 6a31efe..2da14e4 100644
--- a/.gitea/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -12,3 +12,10 @@ jobs:
- uses: actions/checkout@v4
- run: ./configure && make
- run: ./mikusays -V && ./mikusays "hi"
+
+ windows-cross:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - run: sudo apt-get update && sudo apt-get install -y gcc-mingw-w64-x86-64
+ - run: ./configure --host=x86_64-w64-mingw32 && make
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml
index 12ab226..6f93b07 100644
--- a/.gitea/workflows/release.yml
+++ b/.gitea/workflows/release.yml
@@ -5,7 +5,6 @@ on:
tags: ["v*"]
jobs:
- # builds the source tarball (configure included) and checks tag == configure.ac version
dist:
runs-on: ubuntu-latest
steps:
@@ -44,17 +43,37 @@ jobs:
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"
+ mv mikusays ../mikusays-$VERSION-linux-x86_64
- uses: actions/upload-artifact@v3
with:
name: bin-linux-x86_64
- path: mikusays-*-linux-x86_64.tar.gz
+ path: mikusays-*-linux-x86_64
+
+ build-windows:
+ needs: dist
+ runs-on: ubuntu-latest
+ steps:
+ - name: install compiler
+ run: sudo apt-get update && sudo apt-get install -y build-essential gcc-mingw-w64-x86-64
+ - 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 --host=x86_64-w64-mingw32 LDFLAGS="-static"
+ make
+ x86_64-w64-mingw32-strip mikusays.exe
+ mv mikusays.exe ../mikusays-$VERSION-windows-x86_64.exe
+ - uses: actions/upload-artifact@v3
+ with:
+ name: bin-windows-x86_64
+ path: mikusays-*-windows-x86_64.exe
release:
- needs: [dist, build]
+ needs: [dist, build, build-windows]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3