From a7cda5b70f07d82c3d886dcd155f97836ceb06eb Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Sun, 13 Apr 2025 19:19:34 +0300 Subject: [PATCH] CI fx workflow 37 --- .gitea/workflows/arch.yaml | 4 +++- .gitea/workflows/debpkg.yaml | 5 ++++- source/.version | 2 +- source/bforce/sess_call.c | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/arch.yaml b/.gitea/workflows/arch.yaml index 92de919..7baf6c8 100644 --- a/.gitea/workflows/arch.yaml +++ b/.gitea/workflows/arch.yaml @@ -1,9 +1,11 @@ name: Archlinux build run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀 -on: [none] +on: [push] jobs: + if: ${{ env.GITHUB_REF == '/refs/heads/master' }} build: runs-on: arch-latest + if: ${{ ! startsWith(github.ref, 'refs/tags/') }} branches: - 'master' - 'zx' diff --git a/.gitea/workflows/debpkg.yaml b/.gitea/workflows/debpkg.yaml index 1313ba6..9b3c442 100644 --- a/.gitea/workflows/debpkg.yaml +++ b/.gitea/workflows/debpkg.yaml @@ -25,6 +25,9 @@ jobs: apt install -y tcl - name: Cloning source uses: actions/checkout@v4 + - name: Getting version info + run: | + echo "BFORCE_VER=$(echo -n ${{ env.GITHUB_WORKSPACE }}/source/.version)" >> $GITHUB_ENV - name: Building package continue-on-error: false run: | @@ -42,6 +45,6 @@ jobs: - name: Try to upload artifacts uses: actions/upload-artifact@v3 with: - name: bforce + name: bforce-${{ env.BFORCE_VER }} path: ${{ env.GITHUB_WORKSPACE }}/artifacts/bforce*.deb - run: echo "This job's over" diff --git a/source/.version b/source/.version index 9922215..30f6cf8 100644 --- a/source/.version +++ b/source/.version @@ -1 +1 @@ -0.26 +0.26.1 diff --git a/source/bforce/sess_call.c b/source/bforce/sess_call.c index 675ba82..161c4f9 100644 --- a/source/bforce/sess_call.c +++ b/source/bforce/sess_call.c @@ -536,7 +536,7 @@ defalt: if ( ! resflg ) { - char *p = strcasestr(pbuf, target); + char *p = string_casestr(pbuf, target); if ( p ) {