Skip to content

Add: more mins and no fail fast #7

Add: more mins and no fail fast

Add: more mins and no fail fast #7

Workflow file for this run

name: 'Compile'
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
Skip_Checking:
runs-on: self-hosted
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
Compile:
needs: Skip_Checking
if: needs.Skip_Checking.outputs.should_skip != 'true'
runs-on: self-hosted
permissions:
contents: read
packages: write
timeout-minutes: 600
strategy:
fail-fast: false
matrix:
versions: [6.6.1, 6.5.3]
steps:
- name: Cleanup build folder
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- name: Checkout Project
uses: actions/checkout@v3
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/qt-builder
${{ vars.REGISTRY }}/qt-builder
tags: ${{ matrix.versions }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to Github Container Registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.USER_GITHUB_PERSONAL }}
password: ${{ secrets.TOKEN_GITHUB_PERSONAL }}
- name: Set QEMU
uses: docker/setup-qemu-action@v2
- name: Set Buildx
uses: docker/setup-buildx-action@v2
- name: Build and Load
id: build3x
uses: docker/build-push-action@v4
with:
context: ./BuilderQt
platforms: linux/amd64,linux/arm64
target: building
build-args: VERSION=${{ matrix.versions }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and Load
id: build3x

Check failure on line 85 in .github/workflows/compile.yml

View workflow run for this annotation

GitHub Actions / Compile

Invalid workflow file

The workflow is not valid. .github/workflows/compile.yml (Line: 85, Col: 13): The identifier 'build3x' may not be used more than once within the same scope.
uses: docker/build-push-action@v4
with:
context: ./BuilderQt
platforms: linux/amd64,linux/arm64
target: artifact
build-args: VERSION=${{ matrix.versions }}
outputs: type=local,dest={{ github.workspace }}/build-${{ matrix.versions }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build-${{ matrix.versions }}/linux_amd64/Qt-amd64.tar.xz
build-${{ matrix.versions }}/linux_arm64/Qt-arm64.tar.xz