akvirtualcamera/.github/workflows/linux-mingw.yml

109 lines
3.3 KiB
YAML
Raw Normal View History

name: Linux MinGW
on: [push, pull_request]
env:
2021-06-26 22:34:22 +00:00
QTIFWVER: 4.1.1
2021-10-29 14:43:38 +00:00
NSIS_VERSION: 3.08
2021-08-03 15:32:54 +00:00
DOCKERIMG: archlinux:latest
ARCH_ROOT_URL: https://mirror.rackspace.com/archlinux
NJOBS: 4
jobs:
build:
runs-on: ubuntu-latest
2021-08-03 15:32:54 +00:00
strategy:
max-parallel: 10
fail-fast: false
matrix:
include:
- compiler: gcc
- compiler: clang
steps:
- uses: actions/checkout@v2
2021-08-03 15:32:54 +00:00
- name: Release build
uses: addnab/docker-run-action@v3
2021-06-29 00:00:57 +00:00
if: ${{ startsWith(github.ref, 'refs/tags/') }}
2021-08-03 15:32:54 +00:00
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
image: ${{ env.DOCKERIMG }}
options: >-
-v ${{ github.workspace }}:/sources
-e NSIS_VERSION=${{ env.NSIS_VERSION }}
-e TARGET_ARCH=${{ matrix.target_arch }}
2021-08-03 16:38:16 +00:00
-e COMPILER=${{ matrix.compiler }}
2021-08-03 15:32:54 +00:00
-e DOCKERIMG=${{ env.DOCKERIMG }}
-e ARCH_ROOT_URL=${{ env.ARCH_ROOT_URL }}
-e NJOBS=${{ env.NJOBS }}
run: |
cd /sources
echo
echo Install dependencies
echo
chmod +x ports/ci/linux-mingw/install_deps.sh
./ports/ci/linux-mingw/install_deps.sh
echo
echo Release Build
echo
chmod +x ports/ci/linux-mingw/build.sh
./ports/ci/linux-mingw/build.sh
echo
echo Release Deploy
echo
chmod +x ports/ci/linux-mingw/deploy.sh
./ports/ci/linux-mingw/deploy.sh
- name: Daily build
uses: addnab/docker-run-action@v3
2021-06-29 00:00:57 +00:00
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
2021-08-03 15:32:54 +00:00
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
image: ${{ env.DOCKERIMG }}
options: >-
-v ${{ github.workspace }}:/sources
-e NSIS_VERSION=${{ env.NSIS_VERSION }}
-e TARGET_ARCH=${{ matrix.target_arch }}
2021-08-03 16:38:16 +00:00
-e COMPILER=${{ matrix.compiler }}
2021-08-03 15:32:54 +00:00
-e DOCKERIMG=${{ env.DOCKERIMG }}
-e ARCH_ROOT_URL=${{ env.ARCH_ROOT_URL }}
-e NJOBS=${{ env.NJOBS }}
-e DAILY_BUILD=1
run: |
cd /sources
echo
echo Install dependencies
echo
chmod +x ports/ci/linux-mingw/install_deps.sh
./ports/ci/linux-mingw/install_deps.sh
echo
echo Daily Build
echo
chmod +x ports/ci/linux-mingw/build.sh
./ports/ci/linux-mingw/build.sh
echo
echo Daily Deploy
echo
chmod +x ports/ci/linux-mingw/deploy.sh
./ports/ci/linux-mingw/deploy.sh
2021-06-29 21:22:19 +00:00
- name: Release Upload
2021-08-03 16:38:16 +00:00
uses: softprops/action-gh-release@v0.1.6
2021-06-29 19:19:20 +00:00
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
2021-08-03 15:32:54 +00:00
files: packages/windows-gcc/*
2021-06-29 19:19:20 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021-06-29 21:22:19 +00:00
- name: Daily Build Upload
2021-08-03 16:38:16 +00:00
uses: softprops/action-gh-release@v0.1.6
2021-06-29 19:19:20 +00:00
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
2021-06-29 21:47:20 +00:00
body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})"
2021-06-29 19:19:20 +00:00
prerelease: true
2021-08-03 15:32:54 +00:00
files: packages/windows-gcc/*
2021-06-29 19:19:20 +00:00
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}