2021-06-25 15:26:42 +00:00
|
|
|
name: Linux MinGW
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
2021-06-26 22:34:22 +00:00
|
|
|
QTIFWVER: 4.1.1
|
2021-06-25 15:26:42 +00:00
|
|
|
ARCH_ROOT_DATE: 2021.05.01
|
|
|
|
ARCH_ROOT_URL: https://mirror.rackspace.com/archlinux
|
|
|
|
NSIS_VERSION: 3.06.1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2021-06-25 15:48:53 +00:00
|
|
|
chmod +x ports/ci/linux-mingw/install_deps.sh
|
|
|
|
./ports/ci/linux-mingw/install_deps.sh
|
2021-06-28 22:54:26 +00:00
|
|
|
- name: Release Build
|
2021-06-29 00:00:57 +00:00
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
2021-06-28 22:54:26 +00:00
|
|
|
env:
|
|
|
|
RELEASE_BUILD: 1
|
2021-06-25 15:26:42 +00:00
|
|
|
run: |
|
2021-06-25 15:48:53 +00:00
|
|
|
chmod +x ports/ci/linux-mingw/build.sh
|
|
|
|
./ports/ci/linux-mingw/build.sh
|
2021-06-28 22:54:26 +00:00
|
|
|
- name: Release Deploy
|
2021-06-29 00:00:57 +00:00
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
2021-06-28 22:54:26 +00:00
|
|
|
env:
|
|
|
|
RELEASE_BUILD: 1
|
2021-06-25 15:26:42 +00:00
|
|
|
run: |
|
2021-06-25 15:48:53 +00:00
|
|
|
chmod +x ports/ci/linux-mingw/deploy.sh
|
|
|
|
./ports/ci/linux-mingw/deploy.sh
|
2021-06-28 22:54:26 +00:00
|
|
|
- name: Daily Build
|
2021-06-29 00:00:57 +00:00
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
2021-06-28 22:54:26 +00:00
|
|
|
env:
|
|
|
|
DAILY_BUILD: 1
|
2021-06-25 15:26:42 +00:00
|
|
|
run: |
|
2021-06-28 22:54:26 +00:00
|
|
|
chmod +x ports/ci/linux-mingw/build.sh
|
|
|
|
./ports/ci/linux-mingw/build.sh
|
|
|
|
- name: Daily Deploy
|
2021-06-29 00:00:57 +00:00
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
2021-06-28 22:54:26 +00:00
|
|
|
env:
|
|
|
|
DAILY_BUILD: 1
|
|
|
|
run: |
|
|
|
|
chmod +x ports/ci/linux-mingw/deploy.sh
|
|
|
|
./ports/ci/linux-mingw/deploy.sh
|
|
|
|
# - name: Upload
|
|
|
|
# run: |
|
2021-06-29 19:19:20 +00:00
|
|
|
# chmod +x ports/ci/linux-mingw/upload.sh
|
|
|
|
# ./ports/ci/linux-mingw/upload.sh
|
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
|
|
with:
|
|
|
|
files: webcamoid-packages/*
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Daily Build
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
|
|
with:
|
|
|
|
body: ${{ github.event.head_commit.message }}
|
|
|
|
prerelease: true
|
|
|
|
files: webcamoid-packages/*
|
|
|
|
name: Daily Build
|
|
|
|
tag_name: daily-build
|
|
|
|
target_commitish: ${{ github.sha }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-06-28 19:43:36 +00:00
|
|
|
- name: Linux MinGW daily build packages
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: linux-mingw-daily-build
|
|
|
|
path: webcamoid-packages/*
|