diff --git a/.github/workflows/linux-mingw.yml b/.github/workflows/linux-mingw.yml index a1d713a..fb70b64 100644 --- a/.github/workflows/linux-mingw.yml +++ b/.github/workflows/linux-mingw.yml @@ -20,9 +20,8 @@ jobs: - compiler: clang steps: - uses: actions/checkout@v2 - - name: Release build + - name: Build uses: addnab/docker-run-action@v3 - if: ${{ startsWith(github.ref, 'refs/tags/') }} with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -53,55 +52,3 @@ jobs: echo chmod +x ports/ci/linux-mingw/deploy.sh ./ports/ci/linux-mingw/deploy.sh - - name: Daily build - uses: addnab/docker-run-action@v3 - if: ${{ !startsWith(github.ref, 'refs/tags/') }} - 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 }} - -e COMPILER=${{ matrix.compiler }} - -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 - - name: Release Upload - uses: softprops/action-gh-release@v1 - if: ${{ startsWith(github.ref, 'refs/tags/') }} - with: - files: packages/windows-gcc/* - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Daily Build Upload - uses: softprops/action-gh-release@v1 - if: ${{ !startsWith(github.ref, 'refs/tags/') }} - with: - body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})" - prerelease: true - files: packages/windows-gcc/* - name: Daily Build - tag_name: daily-build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/windows-msys.yml b/.github/workflows/windows-msys.yml index 87fd506..b63f05e 100644 --- a/.github/workflows/windows-msys.yml +++ b/.github/workflows/windows-msys.yml @@ -45,7 +45,37 @@ jobs: mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-pkgconf - - name: Build + - name: Release Build + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: ./ports/ci/windows-msys/build.sh - - name: Deploy + - name: Release Deploy + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: ./ports/ci/windows-msys/deploy.sh + - name: Daily Build + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + env: + DAILY_BUILD: 1 + run: ./ports/ci/windows-msys/build.sh + - name: Daily Deploy + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + env: + DAILY_BUILD: 1 + run: ./ports/ci/windows-msys/deploy.sh + - name: Release Upload + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(github.ref, 'refs/tags/') }} + with: + files: packages/windows-gcc/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Daily Build Upload + uses: softprops/action-gh-release@v1 + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + with: + body: "${{ github.event.head_commit.message }} (commit: [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}))
**Note**: Ignore the commit information of the tag, the files in the release keep updating with every new build, these packages were built from [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}) commit." + prerelease: true + files: packages/windows-gcc/* + name: Daily Build + tag_name: daily-build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}