[ci] set MinGW to produce ALPHA or BETA off release

* Also avoid tagged release duplication
This commit is contained in:
Pete Batard 2021-09-28 16:03:36 +01:00
parent aba6c7d996
commit fba24170e1
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 20 additions and 7 deletions

View file

@ -2,6 +2,7 @@ name: Coverity
on:
push:
branches: [master]
paths-ignore:
- '.gitignore'
- '.gitattributes'

View file

@ -13,6 +13,7 @@ on:
- '**.txt'
- '**.xml'
pull_request:
branches: [master]
paths-ignore:
- '.gitignore'
- '.gitattributes'
@ -56,9 +57,19 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Set ALPHA
id: set_alpha
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: echo "::set-output name=option::--enable-alpha"
- name: Set BETA
id: set_beta
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'BETA') }}
run: echo "::set-output name=option::--enable-beta"
- name: Build
run: |
./configure --disable-debug
./configure --disable-debug ${{ steps.set_alpha.outputs.option }} ${{ steps.set_beta.outputs.option }}
make -j4
mv ./src/rufus.exe .
strip ./rufus.exe

View file

@ -13,6 +13,7 @@ on:
- '**.txt'
- '**.xml'
pull_request:
branches: [master]
paths-ignore:
- '.gitignore'
- '.gitattributes'