1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
name: CI Build
on: [push]
jobs:
build:
name: MinGW build
runs-on: ubuntu-latest
container:
image: fedora:rawhide
options: --security-opt seccomp=unconfined
steps:
- name: Set safe directory
run: |
dnf install -y git
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- uses: actions/checkout@v4.2.2
- name: Update system
run: dnf -y update
- name: Install build dependencies
run: ./packaging/win32/mingwdeps.sh
- name: Build application
run: |
PATH=/usr/bin ./packaging/win32/makeinstaller.sh i686 qt6 nodebug ${{ steps.version_number.outputs.version }}
PATH=/usr/bin ./packaging/win32/makeinstaller.sh x86_64 qt6 nodebug ${{ steps.version_number.outputs.version }}
PATH=/usr/bin ./packaging/win32/makeinstaller.sh x86_64 gtk nodebug ${{ steps.version_number.outputs.version }}
- name: Reset ci-latest tag
run: |
VERSION=${{ steps.version_number.outputs.version }}
git config --global user.email "ci@github.com"
git config --global user.name "Github CI"
git tag -d ci-latest || true
git push origin :ci-latest || true
git tag -m ci-latest ci-latest
git push --tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: ncipollo/release-action@v1.18.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
allowUpdates: true
tag: ci-latest
name: CI Build
draft: false
prerelease: true
replacesArtifacts: true
artifacts: "
./build/mingw32-qt6/gImageReader_*_qt6_i686_portable.zip,
./build/mingw32-qt6/gImageReader_*_qt6_i686.exe,
./build/mingw64-qt6/gImageReader_*_qt6_x86_64_portable.zip,
./build/mingw64-qt6/gImageReader_*_qt6_x86_64.exe,
./build/mingw64-gtk/gImageReader_*_gtk_x86_64_portable.zip,
./build/mingw64-gtk/gImageReader_*_gtk_x86_64.exe
"
|