Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6aee8f6c5 | ||
|
|
94f1bf5111 | ||
|
|
dcbfd4c98b |
No files matched your search
@@ -12,3 +12,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: ./configure && make
|
- run: ./configure && make
|
||||||
- run: ./mikusays -V && ./mikusays "hi"
|
- 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
|
||||||
@@ -5,7 +5,6 @@ on:
|
|||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# builds the source tarball (configure included) and checks tag == configure.ac version
|
|
||||||
dist:
|
dist:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -44,17 +43,37 @@ jobs:
|
|||||||
strip mikusays
|
strip mikusays
|
||||||
./mikusays -V
|
./mikusays -V
|
||||||
./mikusays "hi" > /dev/null
|
./mikusays "hi" > /dev/null
|
||||||
out=mikusays-$VERSION-linux-x86_64
|
mv mikusays ../mikusays-$VERSION-linux-x86_64
|
||||||
mkdir "$out"
|
|
||||||
cp mikusays LICENSE README.md "$out"/
|
|
||||||
tar czf ../"$out".tar.gz "$out"
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: bin-linux-x86_64
|
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:
|
release:
|
||||||
needs: [dist, build]
|
needs: [dist, build, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
AC_PREREQ([2.69])
|
AC_PREREQ([2.69])
|
||||||
AC_INIT([mikusays], [1.1.0], [], [mikusays], [https://git.squeakyrat.moe/mikusays-c])
|
AC_INIT([mikusays], [1.1.3], [], [mikusays], [https://git.squeakyrat.moe/mikusays-c])
|
||||||
AC_CONFIG_SRCDIR([src/main.c])
|
AC_CONFIG_SRCDIR([src/main.c])
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
|
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
|
||||||
|
|||||||
+1
-2
@@ -480,8 +480,7 @@ static int usage_error(const char *format, ...){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//returns 1 if argv[*index] is this option; *value stays NULL when the value is missing
|
//returns 1 if argv[*index] is this option; *value stays NULL when the value is missing
|
||||||
static int match_value_option(int argc, char **argv, int *index, const char *long_name,
|
static int match_value_option(int argc, char **argv, int *index, const char *long_name, char short_name, const char **value){
|
||||||
char short_name, const char **value){
|
|
||||||
const char *argument = argv[*index];
|
const char *argument = argv[*index];
|
||||||
size_t long_length = strlen(long_name);
|
size_t long_length = strlen(long_name);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user