commit cb76359a23b69aab1b2048a3a84385749cf0bec0
parent 5b468c781eb7be444b78276b615920dd4dd55f79
Author: Yersa Nordman <yersa@finwo.nl>
Date: Sun, 22 Oct 2023 20:28:28 +0200
Set output file name for windows ; added tag filter on pipeline
Diffstat:
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
@@ -3,8 +3,8 @@
name: Build
on:
push:
- # tags:
- # - '*'
+ tags:
+ - '*'
jobs:
@@ -16,6 +16,7 @@ jobs:
include:
- os: windows-latest
cc: clang
+ bin: fnet_test.exe
steps:
- uses: actions/checkout@v3
@@ -39,9 +40,18 @@ jobs:
shell: bash
- name: Build
- run: make CC=${{ matrix.cc }}
+ run: make CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
shell: bash
+ - name: Upload binaries to release
+ uses: svenstaro/upload-release-action@v2
+ with:
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
+ file: ${{ matrix.bin }}
+ file_glob: true
+ overwrite: true
+ tag: ${{ github.ref }}
+
build-linux:
name: Build
runs-on: ubuntu-latest
diff --git a/Makefile b/Makefile
@@ -1,7 +1,7 @@
LIBS:=
SRC:=
-BIN=fnet_test
+BIN?=fnet_test
SRC+=test.c
SRC+=$(wildcard src/*.c)